MongoDB.Bson.Serialization.BsonMemberMap.SetRepresentation C# (CSharp) Method

SetRepresentation() public method

Sets the external representation.
public SetRepresentation ( BsonType representation ) : BsonMemberMap
representation BsonType The external representation.
return BsonMemberMap
        public BsonMemberMap SetRepresentation(BsonType representation)
        {
            if (_frozen) { ThrowFrozenException(); }
            _serializationOptions = new RepresentationSerializationOptions(representation);
            return this;
        }