

| ReadPreferenceMode Enumeration | 
Namespace: MongoDB.Driver
 Syntax
Syntax Members
Members| Member name | Value | Description | |
|---|---|---|---|
| Primary | 0 | Reads should be from the primary. | |
| PrimaryPreferred | 1 | Reads should be from the primary if possible, otherwise from a secondary. | |
| Secondary | 2 | Reads should be from a secondary. | |
| SecondaryPreferred | 3 | Reads should be from a secondary if possible, otherwise from the primary. | |
| Nearest | 4 | Reads should be from any server that is within the latency threshold window. | 
 See Also
See AlsoCopyright © 2010–present MongoDB Inc.