Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDataRecord.GetName Method

Gets the name for the field to find.

[Visual Basic]
Function GetName( _
   ByVal i As Integer _
) As String
[C#]
string GetName(
   int i
);
[C++]
String* GetName(
   int i
);
[JScript]
function GetName(
   i : int
) : String;

Parameters

i
The index of the field to find.

Return Value

The name of the field or the empty string (""), if there is no value to return.

Exceptions

Exception Type Condition
IndexOutOfRangeException The index passed was outside the range of 0 through FieldCount.

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

IDataRecord Interface | IDataRecord Members | System.Data Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.