DataProvider.GetOrdinal Method
Retrieves an ordinal for the specified column name.
.Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Public Function GetOrdinal ( _
name As String _
) As Integer
'Usage
Dim instance As DataProvider
Dim name As String
Dim returnValue As Integer
returnValue = instance.GetOrdinal(name)
public int GetOrdinal(
string name
)
public:
virtual int GetOrdinal(
String^ name
) sealed
abstract GetOrdinal :
name:string -> int
override GetOrdinal :
name:string -> int
public final function GetOrdinal(
name : String
) : int
Parameters
- name
Type: System.String
The name of the column.
Return Value
Type: System.Int32
The zero-based column ordinal.