Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- ordinal
Type: System.Int32
The zero-based column ordinal.
Return Value
Type: System.Object
The value to return.
Implements
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.