GetInt16 Method
Returns the value of the column at the specified index as an Int16.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides Function GetInt16 ( _
ordinal As Integer _
) As Short
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As Short
returnValue = instance.GetInt16(ordinal)
public override short GetInt16(
int ordinal
)
public:
virtual short GetInt16(
int ordinal
) override
abstract GetInt16 :
ordinal:int -> int16
override GetInt16 :
ordinal:int -> int16
public override function GetInt16(
ordinal : int
) : short
Parameters
- ordinal
Type: System. . :: . .Int32
The ordinal position of the column from which to retrieve data.
Return Value
Type: System. . :: . .Int16
The value of the column at the specified index.
Implements
IDataRecord. . :: . .GetInt16(Int32)
Remarks
An exception is thrown if no field exists at the specified ordinal position.