|
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.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
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