GetSqlInt16 Method

SqlCeResultSet.GetSqlInt16 Method

Returns the value of the column at the specified index as type SqlInt16.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public override SqlInt16 GetSqlInt16(
	int ordinal
)

Parameters

ordinal
Type: System.Int32
The ordinal position of the column from which to retrieve data.

Return Value

Type: System.Data.SqlTypes.SqlInt16
The value of the column at the specified index.

An exception is thrown if no field exists at the specified ordinal position.

Show:
© 2016 Microsoft