|
DataExtensionsToDelimitedString Method
|
Converts the DataTable to a multi-line delimited string (e.g., CSV export).
Namespace: GSF.DataAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic static string ToDelimitedString(
this DataTable table,
string delimiter,
bool quoted,
bool header
)
<ExtensionAttribute>
Public Shared Function ToDelimitedString (
table As DataTable,
delimiter As String,
quoted As Boolean,
header As Boolean
) As String
public:
[ExtensionAttribute]
static String^ ToDelimitedString(
DataTable^ table,
String^ delimiter,
bool quoted,
bool header
)
[<ExtensionAttribute>]
static member ToDelimitedString :
table : DataTable *
delimiter : string *
quoted : bool *
header : bool -> string
GSF.Data.DataExtensions.ToDelimitedString = function(table, delimiter, quoted, header);
View SourceParameters
- 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
StringA 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