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)

Syntax

'Declaration
<SecurityTreatAsSafeAttribute> _
<SecurityCriticalAttribute> _
Public Overrides Function GetValue ( _
    ordinal As Integer _
) As Object
'Usage
Dim instance As SqlCeDataReader
Dim ordinal As Integer
Dim returnValue As Object

returnValue = instance.GetValue(ordinal)
[SecurityTreatAsSafeAttribute]
[SecurityCriticalAttribute]
public override Object GetValue(
    int ordinal
)
[SecurityTreatAsSafeAttribute]
[SecurityCriticalAttribute]
public:
virtual Object^ GetValue(
    int ordinal
) override
[<SecurityTreatAsSafeAttribute>]
[<SecurityCriticalAttribute>]
abstract GetValue : 
        ordinal:int -> Object 
[<SecurityTreatAsSafeAttribute>]
[<SecurityCriticalAttribute>]
override GetValue : 
        ordinal:int -> Object 
public override function GetValue(
    ordinal : int
) : Object

Parameters

Return Value

Type: System.Object
The value to return.

Implements

IDataRecord.GetValue(Int32)

Exceptions

Exception Condition
InvalidOperationException

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

Remarks

This method returns DBNull for null database columns.

See Also

Reference

SqlCeDataReader Class

System.Data.SqlServerCe Namespace