Table of Contents

Class ReadConcern

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

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)
Equals(object)
FromBsonDocument(BsonDocument)

Creates a read concern from a document.

GetHashCode()
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.