Click or drag to resize

ReadPreferenceHedge Class

Represents a read preference hedge.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverReadPreferenceHedge

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public sealed class ReadPreferenceHedge : IEquatable<ReadPreferenceHedge>

The ReadPreferenceHedge type exposes the following members.

Constructors
  NameDescription
Public methodReadPreferenceHedge
Initializes an instance of ReadPreferenceHedge.
Top
Properties
  NameDescription
Public propertyStatic memberDisabled
Gets a disabled read preference hedge.
Public propertyStatic memberEnabled
Gets an enabled read preference hedge.
Public propertyIsEnabled
Gets whether hedged reads are enabled.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(ReadPreferenceHedge)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToBsonDocument
Converts the read preference hedge to a BsonDocument.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also