Version

GetOrdinal Method

Gets the zero-based field index corresponding to the field with the specified name.
Syntax
'Declaration
 
Public Function GetOrdinal( _
   ByVal name As String _
) As Integer
public int GetOrdinal( 
   string name
)

Parameters

name
A name that must identify one of the fields from the read record.

Return Value

The zero-based field index corresponding to a field with a name matching the name argument.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also