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

On this page
    AsChar Property
    On this page
    Gets or sets the value of the field as a Char; a String field must contain exactly one character. Returns a null reference (Nothing in Visual Basic) for a missing field; throws System.InvalidCastException for the other types. The value is written as a String.
    Syntax
    'Declaration
     
    Public Property AsChar As Nullable(Of Char)
    public Nullable<char> AsChar {get; set;}
    See Also