ConnectionMode Enumeration |
Note: This API is now obsolete.
Namespace: MongoDB.Driver
[SerializableAttribute] [ObsoleteAttribute("Use DirectConnection instead.")] public enum ConnectionMode
<SerializableAttribute> <ObsoleteAttribute("Use DirectConnection instead.")> Public Enumeration ConnectionMode
[<SerializableAttribute>] [<ObsoleteAttribute("Use DirectConnection instead.")>] type ConnectionMode
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. |
Copyright © 2010–present MongoDB Inc.