Class ReadConcern
Represents a read concern.
public sealed class ReadConcern : IEquatable<ReadConcern>, IConvertibleToBsonDocument
- Inheritance
-
ReadConcern
- Implements
- Inherited Members
Constructors
- ReadConcern(Optional<ReadConcernLevel?>)
Initializes a new instance of the ReadConcern class.
Properties
- Available
Gets an available read concern.
- Default
Gets a default read concern.
- IsServerDefault
Gets a value indicating whether this is the server's default read concern.
- Level
Gets the level.
- Linearizable
Gets a linearizable read concern.
- Local
Gets a local read concern.
- Majority
Gets a majority read concern.
- Snapshot
Gets a snapshot read concern.
Methods
- Equals(ReadConcern)
Indicates whether the current object is equal to another object of the same type.
- Equals(object)
Determines whether the specified object is equal to the current object.
- FromBsonDocument(BsonDocument)
Creates a read concern from a document.
- GetHashCode()
Serves as the default hash function.
- ToBsonDocument()
Converts this read concern to a BsonDocument suitable to be sent to the server.
- ToString()
Returns a string that represents this instance.
- With(Optional<ReadConcernLevel?>)
Returns a new instance of ReadConcern with some values changed.