DataTableCollection Add Method TIBCO Spotfire 5.5 API Reference
Create and add a DataTable from a DataSource. Use CreateFileDataSource(String) to create a DataSource from a file path.

Namespace: Spotfire.Dxp.Data
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 11.15.5816.4413 (11.15.5816.4413)
Syntax

public DataTable Add(
	string dataTableName,
	DataSource dataSource
)

Parameters

dataTableName
Type: System String
The name of the data table.
dataSource
Type: Spotfire.Dxp.Data DataSource
The DataSource to retrieve data from.

Return Value

Type: DataTable
The data table.
Exceptions

ExceptionCondition
System ArgumentExceptionThrow if the dataTableName is not a valid name.
System ArgumentExceptionThrown if a data table with the given name already exists in the collection.
System ArgumentExceptionThrown when the dataSource is null.
Version Information

Supported in: 5.5, 5.0, 4.5, 4.0, 3.3
See Also