GetName Method
Gets the name of the specified column.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides Function GetName ( _
index As Integer _
) As String
'Usage
Dim instance As SqlCeDataReader
Dim index As Integer
Dim returnValue As String
returnValue = instance.GetName(index)
public override string GetName(
int index
)
public:
virtual String^ GetName(
int index
) override
abstract GetName :
index:int -> string
override GetName :
index:int -> string
public override function GetName(
index : int
) : String
Parameters
- index
Type: System. . :: . .Int32
The zero-based column ordinal.
Return Value
Type: System. . :: . .String
The name of the specified column.
Implements
IDataRecord. . :: . .GetName(Int32)
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The operation is not valid. The SqlCeDataReader may be positioned after the last row in the result set. |