Click or drag to resize
DataExportHelperExportToCSV Method (DataSet, Int32, Stream, Boolean)
Exports specified table of given DataSet to CSV format.

Namespace: CMS.ImportExport
Assembly: CMS.ImportExport (in CMS.ImportExport.dll) Version: 9.0.0
Syntax
C#
public byte[] ExportToCSV(
	DataSet dataSet,
	int tableIndex,
	Stream stream,
	bool returnAsArray
)

Parameters

dataSet
Type: System.DataDataSet
DataSet to export
tableIndex
Type: SystemInt32
Index of table to export
stream
Type: CMS.IOStream
Stream to write to
returnAsArray
Type: SystemBoolean
If true DataSet is returned in byte array format

Return Value

Type: Byte
See Also