Click or drag to resize

csvFileExtensionstoCSV Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
2017: CSV imbVeles implementation - Extract data from DataTable into CSV string

Namespace:  imbSCI.DataComplex.extensions.data.formats
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public static string toCSV(
	this DataTable data,
	bool doIncludeCaption,
	string delimiter = ",",
	string newlineSeparator = "",
	params string[] fieldsOrCategoriesToShow
)
Request Example View Source

Parameters

data
Type: System.DataDataTable
doIncludeCaption
Type: SystemBoolean
delimiter (Optional)
Type: SystemString
newlineSeparator (Optional)
Type: SystemString
fieldsOrCategoriesToShow
Type: SystemString
Fields or Categories to include. If empty them all

Return Value

Type: String

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