Visual Basic (Declaration) | |
---|---|
Public Overrides Function GetOrdinal( _ ByVal name As String _ ) As Integer |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As SmartObjectReader Dim name As String Dim value As Integer value = instance.GetOrdinal(name) |
Parameters
- name
- The name of the column.
Return Value
The zero-based column ordinal.Exception | Description |
---|---|
System.IndexOutOfRangeException | The name specified is not a valid column name. |
Target Platforms: 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