dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBObject Class
Properties Methods


On this page
    MongoDBObject Class Members
    On this page

    The following tables list the members exposed by MongoDBObject.

    Public Properties
     NameDescription
    Public PropertyGets or sets the DateTimeKind of the DateTime values read from the document; a written DateTime of the Unspecified kind is taken for this kind. The default value is Utc; Unspecified is not allowed. A document returned by MongoDBDataReader gets the DateTime Kind of the connection.  
    Public PropertyGets or sets how a DateTimeOffset value is written to the document and which values are read as DateTimeOffset. The default value is MongoDBDateTimeOffsetFormat.DateTime. A document returned by MongoDBDataReader gets the DateTimeOffset Format of the connection.  
    Public PropertyGets the collection of the top-level fields of the document.  
    Public PropertyGets or sets how a Guid value is written to the document and the byte order used to read UUIDs of binary subtype 3. The default value is MongoDBGuidFormat.Uuid. A document returned by MongoDBDataReader gets the Guid Format of the connection.  
    Public PropertyGets the field with the specified name or dot-separated path; equivalent to GetField.  
    Top
    Public Methods
     NameDescription
    Public MethodGets the value of the specified field as a Boolean.  
    Public MethodGets the value of the specified field as a Byte.  
    Public MethodGets the value of the specified field as a Char.  
    Public MethodGets the value of the specified field as a DateTime in the DateTimeKind of the document.  
    Public MethodGets the value of the specified field as a Decimal.  
    Public MethodGets the value of the specified field as a double-precision floating-point number.  
    Public MethodReturns the field with the specified name or dot-separated path. If the document has no such field, returns a field of the Uninitialized type that creates the field when a value is assigned to it.  
    Public MethodGets the value of the specified field as a single-precision floating-point number.  
    Public MethodGets the value of the specified field as a 16-bit signed integer.  
    Public MethodGets the value of the specified field as a 32-bit signed integer.  
    Public MethodGets the value of the specified field as a 64-bit signed integer.  
    Public MethodGets the value of the specified field as a string; returns a null reference (Nothing in Visual Basic) for a missing field.  
    Public MethodReturns the value of the specified field as an object of the .NET type that corresponds to its BSON type; returns a null reference (Nothing in Visual Basic) for a a null reference (Nothing in Visual Basic) or missing field.  
    Public MethodReturns true if the document contains a field with the specified name or dot-separated path, for example "address.city" or "items.0"; an empty name means the document itself.  
    Public MethodRemoves the field with the specified name or dot-separated path, together with its child fields, from the document.  
    Public MethodOverloaded. Returns the document as a JSON string.  
    Top
    See Also