Click or drag to resize

ReadPreferenceMode Enumeration

Represents the read preference mode.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public enum ReadPreferenceMode
Members
  Member nameValueDescription
Primary0 Reads should be from the primary.
PrimaryPreferred1 Reads should be from the primary if possible, otherwise from a secondary.
Secondary2 Reads should be from a secondary.
SecondaryPreferred3 Reads should be from a secondary if possible, otherwise from the primary.
Nearest4 Reads should be from any server that is within the latency threshold window.
See Also