DataTableCollectionAdd Method (String, DataSource)

TIBCO Spotfire 11.4 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: 51.0.16121.3915 (51.0.16121.3915)
Syntax

C#
public DataTable Add(
	string dataTableName,
	DataSource dataSource
)

Parameters

dataTableName
Type: SystemString
The name of the data table.
dataSource
Type: Spotfire.Dxp.DataDataSource
The DataSource to retrieve data from.

Return Value

Type: DataTable
The data table.
Exceptions

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

Supported in: 11.4, 11.3, 11.2, 11.1, 11.0, 10.10, 7.11
See Also

Reference