Share via


SqlCeResultSet.GetSqlDateTime Method

Returns the value of the column at the specified index as type SqlDateTime.

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

Syntax

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

returnValue = instance.GetSqlDateTime(ordinal)
public override SqlDateTime GetSqlDateTime(
    int ordinal
)
public:
virtual SqlDateTime GetSqlDateTime(
    int ordinal
) override
abstract GetSqlDateTime : 
        ordinal:int -> SqlDateTime 
override GetSqlDateTime : 
        ordinal:int -> SqlDateTime 
public override function GetSqlDateTime(
    ordinal : int
) : SqlDateTime

Parameters

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

Return Value

Type: System.Data.SqlTypes.SqlDateTime
The value of the column at the specified index.

Remarks

An exception is thrown if no field exists at the specified ordinal position.

See Also

Reference

SqlCeResultSet Class

System.Data.SqlServerCe Namespace