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

On this page
    AsByte Property
    On this page
    Gets or sets the value of the field as a Byte. 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 AsByte As Nullable(Of Byte)
    public Nullable<byte> AsByte {get; set;}
    See Also