This documentation is archived and is not being maintained.

OleDbDataReader.GetName Method

Gets the name of the specified column.

[Visual Basic]
Public Overridable Function GetName( _
   ByVal index As Integer _
) As String Implements IDataRecord.GetName
[C#]
public virtual string GetName(
 int index
);
[C++]
public: virtual String* GetName(
 int index
);
[JScript]
public function GetName(
   index : int
) : String;

Parameters

index
The zero-based column ordinal.

Return Value

The name of the specified column.

Implements

IDataRecord.GetName

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OleDbDataReader Class | OleDbDataReader Members | System.Data.OleDb Namespace | GetOrdinal

Show: