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

On this page
    Value Property (MongoDBField)
    On this page
    Gets or sets the value of the field. The getter returns double, string, bool, DateTime, int, long, Guid, or DateTimeOffset by the BSON type, a null reference (Nothing in Visual Basic) for a a null reference (Nothing in Visual Basic) or missing field, and the text of the value (as AsString) for the other types. The setter creates a missing field and its missing parents; the BSON type is taken from the .NET type of the value unless one of the As... properties set it.
    Syntax
    'Declaration
     
    Public Property Value As Object
    public object Value {get; set;}
    See Also