DataReaderGetOrdinal Method

Spotfire 14.3 API Reference
Return the index of the named column.

Namespace:  Spotfire.Dxp.Data
Assembly:  Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
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: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference