Share via


SqlCeDataReader.GetValue Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

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

Public Overridable Function GetValue( _
   ByVal ordinal As Integer _) As Object Implements IDataRecord.GetValue
[C#]
public virtual object GetValue(intordinal);
[C++]
public: virtual Object* GetValue(intordinal);
[JScript]
public function GetValue(
   ordinal : int) : Object;

Parameters

  • ordinal
    The zero-based column ordinal.

Return Value

The value to return.

Implements

IDataRecord.GetValue

Exceptions

Exception Type 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.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeDataReader Class | SqlCeDataReader Members | System.Data.SqlServerCe Namespace