VistaDB 6
VistaDB.Provider Namespace / VistaDBDataReader Class / GetOrdinal Method
The name of the column.The name of the column.


In This Topic
    GetOrdinal Method (VistaDBDataReader)
    In This Topic
    Gets the column ordinal given the name of the column. Gets the column ordinal given the name of the column.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function GetOrdinal( _
       ByVal name As System.String _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataReader
    Dim name As System.String
    Dim value As System.Integer
     
    value = instance.GetOrdinal(name)
    public override System.int GetOrdinal( 
       System.string name
    )

    Parameters

    name
    The name of the column.The name of the column.

    Return Value

    The zero-based column ordinal.The zero-based column ordinal.
    Exceptions
    ExceptionDescription
    The name specified is not a valid column name.
    Requirements

    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

    See Also