[This is preliminary documentation and is subject to change.]
The BSONDocument type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| BSONDocument |
Create an empty document
| |
| BSONDocument(Stream) |
Deserializes BSON document from stream containing BSON-encoded data
| |
| BSONDocument(String, Boolean, TemplateArg ) |
Creates an instance of the document from JSON template with parameters populated from args optionally caching the template internal
representation. Do not cache templates that change often
|
Methods
| Name | Description | |
|---|---|---|
| Delete |
Deletes an element by name returning true if it was found and deleted
| |
Determines whether the specified object is equal to the current object. (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
| FromArray |
Creates document from array containing BSON-encoded data
| |
| GetByteSize |
Calculates the BSON binary size of this document expressed in bytes
| |
| GetEnumerator | ||
Serves as the default hash function. (Inherited from | ||
Gets the (Inherited from | ||
| IndexOfName |
Returns index of named BSONElement or -1 if it does not exist
| |
Creates a shallow copy of the current (Inherited from | ||
| Set(BSONElement, Int32) |
Inserts BSONElement into document
| |
| Set(BSONElement, Boolean , Int32) |
Inserts BSONElement into document
| |
| ToString | (Overrides | |
| WriteAsBSON |
Serializes this document into BSON-format stream
| |
| WriteAsBSONCore | ||
| WriteAsBSONToNewArray |
Serializes BSON document to byte[]
| |
| WriteAsJSON |
Serializes this dosument into a TextWriter - this method is used by JSON serializer(JSONWriter)
|
Extension Methods
Fields
| Name | Description | |
|---|---|---|
| ARG_TPL_PREFIX | ||
| IDX_THRESHOLD |
Properties
| Name | Description | |
|---|---|---|
| ByteSize |
Recalculates the BSON binary size of this document expressed in bytes
| |
| Count |
Returns the number of BSONElements in this document
| |
| Item Int32 |
Returns BSONElement by index or null if index is out of bounds
| |
| Item String |
Returns BSONElement by name or null if not found
|
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| IEnumerable GetEnumerator |
See Also