dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBField Class / AsDouble Property

On this page
    AsDouble Property
    On this page
    Gets or sets the value of the field as a double-precision floating-point number. Double, String, Boolean, Int32, Int64, TimeStamp, and Decimal128 values are converted. Returns a null reference (Nothing in Visual Basic) for a missing field; throws System.InvalidOperationException for the other types. The value is written as Double.
    Syntax
    'Declaration
     
    Public Property AsDouble As Nullable(Of Double)
    public Nullable<double> AsDouble {get; set;}
    See Also