Class BsonReaderSettings
Represents settings for a BsonReader.
[Serializable]
public abstract class BsonReaderSettings
- Inheritance
-
BsonReaderSettings
- Derived
- Inherited Members
- Extension Methods
Constructors
BsonReaderSettings()
Initializes a new instance of the BsonReaderSettings class.
protected BsonReaderSettings()
BsonReaderSettings(GuidRepresentation)
Initializes a new instance of the BsonReaderSettings class.
[Obsolete("Configure serializers instead.")]
protected BsonReaderSettings(GuidRepresentation guidRepresentation)
Parameters
guidRepresentation
GuidRepresentationThe representation for Guids.
Properties
GuidRepresentation
Gets or sets the representation for Guids.
[Obsolete("Configure serializers instead.")]
public GuidRepresentation GuidRepresentation { get; set; }
Property Value
IsFrozen
Gets whether the settings are frozen.
public bool IsFrozen { get; }
Property Value
Methods
Clone()
Creates a clone of the settings.
public BsonReaderSettings Clone()
Returns
- BsonReaderSettings
A clone of the settings.
CloneImplementation()
Creates a clone of the settings.
protected abstract BsonReaderSettings CloneImplementation()
Returns
- BsonReaderSettings
A clone of the settings.
Freeze()
Freezes the settings.
public BsonReaderSettings Freeze()
Returns
- BsonReaderSettings
The frozen settings.
FrozenCopy()
Returns a frozen copy of the settings.
public BsonReaderSettings FrozenCopy()
Returns
- BsonReaderSettings
A frozen copy of the settings.
ThrowFrozenException()
Throws an InvalidOperationException when an attempt is made to change a setting after the settings are frozen.
protected void ThrowFrozenException()