DataReaderGetOrdinal Method

TIBCO Spotfire 11.4 API Reference
Return the index of the named column.

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 virtual int GetOrdinal(
	string columnName
)

Parameters

columnName
Type: SystemString
The column name.

Return Value

Type: Int32
The index of the named column, or -1 if no such column.
Exceptions

ExceptionCondition
ArgumentNullExceptioncolumnName is null.
Remarks

Overrides of this method should not throw exceptions other than ArgumentNullException. In cases of error -1 should be returned.
Version Information

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

Reference