Method Set
Set(int, BsonValue)
Sets the value of an element.
Parameters
index
intThe zero based index of the element whose value is to be set.
value
BsonValue The new value.
Returns
- Bson
Document The document (so method calls can be chained).
Set(string, BsonValue)
Sets the value of an element (an element will be added if no element with this name is found).
Parameters
Returns
- Bson
Document The document (so method calls can be chained).