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

On this page
    AsInt16 Property
    On this page
    Gets or sets the value of the field as a 16-bit signed integer. Double, String, Boolean, Int32, and Int64 values are converted; a value out of range throws System.OverflowException. 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 AsInt16 As Nullable(Of Short)
    public Nullable<short> AsInt16 {get; set;}
    See Also