GetOrdinal Method
Definition
GetOrdinal(string)
Return the index of the named field.
public int GetOrdinal(string name)
Parameters
namestringThe name of the field to find.
Returns
- int
The index of the named field.
Exceptions
- ArgumentNullException
nameis null.- ArgumentOutOfRangeException
nameis not a valid column name.