Create and add a DataTable from a DataSource.
Use CreateFileDataSource(String) to create
a DataSource from a file path.
Namespace: Spotfire.Dxp.DataAssembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax
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: DataTableThe data table.
Exceptions
Exception | Condition |
---|---|
System ArgumentException | Throw if the dataTableName is not a valid name. |
System ArgumentException | Thrown if a data table with the given name already exists in the collection. |
System ArgumentException | Thrown when the dataSource is null. |
Version Information
See Also