SqlCeResultSet.GetValue Method

Returns the value of the specified field.

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

Syntax

'Declaration
Public Overrides Function GetValue ( _
    ordinal As Integer _
) As Object
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As Object

returnValue = instance.GetValue(ordinal)
public override Object GetValue(
    int ordinal
)
public:
virtual Object^ GetValue(
    int ordinal
) override
abstract GetValue : 
        ordinal:int -> Object 
override GetValue : 
        ordinal:int -> Object 
public override function GetValue(
    ordinal : int
) : Object

Parameters

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

Return Value

Type: System.Object
The object that contains the value of the specified field.

Implements

IDataRecord.GetValue(Int32)

Remarks

The underlying value may be of any type. An exception is thrown if no field exists at the specified ordinal position.

See Also

Reference

SqlCeResultSet Class

System.Data.SqlServerCe Namespace