Class ReadPreferenceHedge
Represents a read preference hedge.
public sealed class ReadPreferenceHedge : IEquatable<ReadPreferenceHedge>
- Inheritance
-
ReadPreferenceHedge
- Implements
- Inherited Members
Constructors
ReadPreferenceHedge(bool)
Initializes an instance of ReadPreferenceHedge.
public ReadPreferenceHedge(bool isEnabled)
Parameters
isEnabled
boolWhether hedged reads are enabled.
Properties
Disabled
Gets a disabled read preference hedge.
public static ReadPreferenceHedge Disabled { get; }
Property Value
Enabled
Gets an enabled read preference hedge.
public static ReadPreferenceHedge Enabled { get; }
Property Value
IsEnabled
Gets whether hedged reads are enabled.
public bool IsEnabled { get; }
Property Value
Methods
Equals(ReadPreferenceHedge)
public bool Equals(ReadPreferenceHedge other)
Parameters
other
ReadPreferenceHedge
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToBsonDocument()
Converts the read preference hedge to a BsonDocument.
public BsonDocument ToBsonDocument()
Returns
- BsonDocument
A BsonDocument.
ToString()
public override string ToString()