MongoDB.Bson.RawBsonDocument.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)
        {
            throw new NotSupportedException("RawBsonDocument instances are immutable.");
        }

Same methods

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