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.
Returns the value of the column at the specified index as a DateTime.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides Function GetDateTime ( _
ordinal As Integer _
) As DateTime
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As DateTime
returnValue = instance.GetDateTime(ordinal)
public override DateTime GetDateTime(
int ordinal
)
public:
virtual DateTime GetDateTime(
int ordinal
) override
abstract GetDateTime :
ordinal:int -> DateTime
override GetDateTime :
ordinal:int -> DateTime
public override function GetDateTime(
ordinal : int
) : DateTime
Parameters
- ordinal
Type: System.Int32
The ordinal position of the column from which to retrieve data.
Return Value
Type: System.DateTime
The value of the column at the specified index.
Implements
IDataRecord.GetDateTime(Int32)
Remarks
An exception is thrown if no field exists at the specified ordinal position.