Click or drag to resize

DataExtensionsToDelimitedString Method

Converts the DataTable to a multi-line delimited string (e.g., CSV export).

Namespace: GSF.Data
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public static string ToDelimitedString(
	this DataTable table,
	string delimiter,
	bool quoted,
	bool header
)
View Source

Parameters

table  DataTable
The DataTable whose data is to be converted to delimited text.
delimiter  String
The character(s) to be used for delimiting the text.
quoted  Boolean
true, if text is to be surrounded by quotes; otherwise, false.
header  Boolean
true, if the delimited text should have header information.

Return Value

String
A string of delimited text.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also