Method Set
Set(int, BsonValue)
Sets the value of an element.
public override BsonDocument Set(int index, BsonValue value)Parameters
- indexint
- The zero based index of the element whose value is to be set. 
- valueBsonValue
- The new value. 
Returns
- BsonDocument
- 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).
public override BsonDocument Set(string name, BsonValue value)Parameters
Returns
- BsonDocument
- The document (so method calls can be chained).