Click or drag to resize

ConnectionMode Enumeration

Note: This API is now obsolete.

Server connection mode.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
[SerializableAttribute]
[ObsoleteAttribute("Use DirectConnection instead.")]
public enum ConnectionMode
Members
  Member nameValueDescription
Automatic0 Automatically determine how to connect.
Direct1 Connect directly to a server.
ReplicaSet2 Connect to a replica set.
ShardRouter3 Connect to one or more shard routers.
Standalone4 Connect to a standalone server.
See Also