CSVDataTable.WriteToStream Method

/// Write the data table to a stream in CSV format ///
<Extension()> _ 
Public Shared Sub WriteToStream( _ 
ByVal dt As DataTable, _ 
ByVal sw As StreamWriter, _ 
Optional ByVal settings As CSVSettings = null _ 
)
This language is not supported or no code example is available.
public static void WriteToStream( 
this DataTable dt, 
StreamWriter sw, 
CSVSettings settings = null 
)
This language is not supported or no code example is available.
[Extension()] 
public:  
static void WriteToStream( 
DataTable^ dt, 
StreamWriter^ sw, 
CSVSettings^ settings 
)
This language is not supported or no code example is available.
public  
Extension() 
static function WriteToStream( 
dt : DataTable, 
sw : StreamWriter, 
settings : CSVSettings 
);
This language is not supported or no code example is available.

Parameters

dt
DataTable

The data table to write

sw
StreamWriter

The stream where the CSV text will be written

settings
CSVSettings

The CSV settings to use when exporting this DataTable (Default: CSV)

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition