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

On this page
    AsString Property
    On this page
    Gets or sets the value of the field as a string. The getter returns the plain text of any value: the hexadecimal text of an ObjectId, the invariant-culture text of a number, the date in the "yyyy-MM-ddTHH:mm:ss.fffK" format, and JSON text for an embedded document, an array, and the other composite types. Returns a null reference (Nothing in Visual Basic) for a missing field and "a null reference (Nothing in Visual Basic)" for a BSON a null reference (Nothing in Visual Basic).
    Syntax
    'Declaration
     
    Public Property AsString As String
    public string AsString {get; set;}
    See Also