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


On this page
    MongoDBDocument Class Members
    On this page

    The following tables list the members exposed by MongoDBDocument.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    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. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    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. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public PropertyGets the collection of the top-level fields of the document. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    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. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public PropertyGets the field with the specified name or dot-separated path; equivalent to GetField. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Releases the native resources used by the MongoDBDocument and optionally releases the managed resources.  
    Public MethodGets the value of the specified field as a Boolean. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a Byte. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a Char. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a DateTime in the DateTimeKind of the document. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a Decimal. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a double-precision floating-point number. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    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. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a single-precision floating-point number. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a 16-bit signed integer. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a 32-bit signed integer. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a 64-bit signed integer. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodGets the value of the specified field as a string; returns a null reference (Nothing in Visual Basic) for a missing field. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    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. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    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. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodRemoves the field with the specified name or dot-separated path, together with its child fields, from the document. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Public MethodOverloaded. Returns the document as a JSON string. (Inherited from Devart.Data.MongoDB.MongoDBObject)
    Top
    Protected Methods
     NameDescription
    Protected MethodOverridden.  
    Top
    See Also