Table of Contents

Enum ConnectionMode

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Server connection mode.

[Serializable]
[Obsolete("Use DirectConnection instead.")]
public enum ConnectionMode

Fields

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.