dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBDataReader Class / GetDateTimeOffset Method / GetDateTimeOffset(Int32) Method

On this page
    GetDateTimeOffset(Int32) Method
    On this page
    Returns the value of the specified column as a DateTimeOffset. A date without an offset gets the offset of the DateTime Kind connection option. Throws System.InvalidCastException if the value is a null reference (Nothing in Visual Basic).
    Syntax
    'Declaration
     
    Public Overloads Overrides Function GetDateTimeOffset( _
       ByVal ordinal As Integer _
    ) As DateTimeOffset
    public override DateTimeOffset GetDateTimeOffset( 
       int ordinal
    )

    Parameters

    ordinal
    See Also