Class ReadPreference
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents a read preference.
public sealed class ReadPreference : IEquatable<ReadPreference>
Inheritance
ReadPreference
Implements
Inherited Members
Constructors
ReadPreference(ReadPreferenceMode, IEnumerable, TimeSpan?, ReadPreferenceHedge)
Initializes a new instance of the ReadPreference class.
Properties
Gets the hedge.
Gets the maximum staleness.
Gets an instance of ReadPreference that represents a Nearest read preference.
Gets an instance of ReadPreference that represents a Primary read preference.
Gets an instance of ReadPreference that represents a PrimaryPreferred read preference.
Gets the read preference mode.
Gets an instance of ReadPreference that represents a Secondary read preference.
Gets an instance of ReadPreference that represents a SecondaryPreferred read preference.
Gets the tag sets.
Methods
Indicates whether the current object is equal to another object of the same type.
Determines whether the specified object is equal to the current object.
FromBsonDocument(BsonDocument)
Creates a new ReadPreference instance from a BsonDocument.
Serves as the default hash function.
Returns a string that represents the current object.
Returns a new instance of ReadPreference with some values changed.
Returns a new instance of ReadPreference with some values changed.
Returns a new instance of ReadPreference with some values changed.
Returns a new instance of ReadPreference with some values changed.