This topic has not yet been rated - Rate this topic

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)
Exception Condition
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.

Did you find this helpful?
(1500 characters remaining)