BsonDocumentAdd Method (BsonElement) |
Adds an element to the document.
Namespace: MongoDB.BsonAssembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.4.1
Syntax public virtual BsonDocument Add(
BsonElement element
)
Public Overridable Function Add (
element As BsonElement
) As BsonDocument
abstract Add :
element : BsonElement -> BsonDocument
override Add :
element : BsonElement -> BsonDocument
Parameters
- element
- Type: MongoDB.BsonBsonElement
The element to add.
Return Value
Type:
BsonDocumentThe document (so method calls can be chained).
See Also