Server connection mode.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax[SerializableAttribute]
public enum ConnectionMode
<SerializableAttribute>
Public Enumeration ConnectionMode
[<SerializableAttribute>]
type ConnectionMode
Members
| Member name | Value | Description |
---|
| Automatic | 0 |
Automatically determine how to connect.
|
| Direct | 1 |
Connect directly to a server.
|
| ReplicaSet | 2 |
Connect to a replica set.
|
| ShardRouter | 3 |
Connect to one or more shard routers.
|
| Standalone | 4 |
Connect to a standalone server.
|
See Also