Export (0) Print
Expand All

IDataRecord.GetChar Method

Gets the character value of the specified column.

[Visual Basic]
Function GetChar( _
   ByVal i As Integer _
) As Char
[C#]
char GetChar(
   int i
);
[C++]
__wchar_t GetChar(
   int i
);
[JScript]
function GetChar(
   i : int
) : Char;

Parameters

i
The zero-based column ordinal.

Return Value

The character value of the specified column.

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

Show:
© 2014 Microsoft