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

On this page
    AsInt32 Property
    On this page
    Gets or sets the value of the field as a 32-bit signed integer. Double, String, Boolean, Int32, and Int64 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 Int32.
    Syntax
    'Declaration
     
    Public Property AsInt32 As Nullable(Of Integer)
    public Nullable<int> AsInt32 {get; set;}
    See Also