CSVDataTable.WriteToString Method

/// Write a DataTable to a string in CSV format ///
<Extension()> _ 
Public Shared Function WriteToString( _ 
ByVal dt As DataTable, _ 
Optional ByVal settings As CSVSettings = null _ 
) As String
This language is not supported or no code example is available.
public static string WriteToString( 
this DataTable dt
CSVSettings settings = null 
)
This language is not supported or no code example is available.
[Extension()] 
public:  
static String^ WriteToString( 
DataTable^ dt
CSVSettings^ settings 
)
This language is not supported or no code example is available.
public  
Extension() 
static function WriteToString( 
dt : DataTable
settings : CSVSettings 
) : String;
This language is not supported or no code example is available.

Parameters

dt
DataTable

The datatable to write

settings
CSVSettings

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

Return Value

string

The CSV string representing the object array.

.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