Enum ReadPreferenceMode
Represents the read preference mode.
public enum ReadPreferenceMode
Fields
Primary = 0Reads should be from the primary.
PrimaryPreferred = 1Reads should be from the primary if possible, otherwise from a secondary.
Secondary = 2Reads should be from a secondary.
SecondaryPreferred = 3Reads should be from a secondary if possible, otherwise from the primary.
Nearest = 4Reads should be from any server that is within the latency threshold window.