Export (0) Print
Expand All

SqlDataReader.GetName Method

Gets the name of the specified column.

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

Parameters

i
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, .NET Compact Framework

See Also

SqlDataReader Class | SqlDataReader Members | System.Data.SqlClient Namespace | GetOrdinal

Show:
© 2014 Microsoft