Export (0) Print
Expand All

IDataRecord.GetInt16 Method

Gets the 16-bit signed integer value of the specified field.

[Visual Basic]
Function GetInt16( _
   ByVal i As Integer _
) As Short
[C#]
short GetInt16(
   int i
);
[C++]
short GetInt16(
   int i
);
[JScript]
function GetInt16(
   i : int
) : Int16;

Parameters

i
The index of the field to find.

Return Value

The 16-bit signed integer value of the specified field.

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