Export (0) Print
Expand All

SqlCeDataReader.GetValue Method

Gets the value of the column at the specified ordinal in its native format.

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

[SecurityTreatAsSafeAttribute]
[SecurityCriticalAttribute]
public override Object GetValue(
	int ordinal
)

Parameters

ordinal
Type: System.Int32
The zero-based column ordinal.

Return Value

Type: System.Object
The value to return.

Implements

IDataRecord.GetValue(Int32)

ExceptionCondition
InvalidOperationException

The operation is not valid. The SqlCeDataReader may be positioned after the last row in the result set.

This method returns DBNull for null database columns.

Show:
© 2014 Microsoft