MongoDB.Bson.MaterializedOnDemandBsonDocument.SetElement C# (CSharp) Method

SetElement() public method

Sets an element of the document (replaces any existing element with the same name or adds a new element if an element with the same name is not found).
public SetElement ( BsonElement element ) : BsonDocument
element BsonElement The new element.
return BsonDocument
        public override BsonDocument SetElement(BsonElement element)
        {
            EnsureIsMaterialized();
            return base.SetElement(element);
        }

Same methods

MaterializedOnDemandBsonDocument::SetElement ( int index, BsonElement element ) : BsonDocument