Table of Contents

Class MongoClientSettings

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll
public class MongoClientSettings : IEquatable<MongoClientSettings>
Inheritance
MongoClientSettings
Implements
Inherited Members

Constructors

MongoClientSettings()

public MongoClientSettings()

Properties

ApplicationName

public string ApplicationName { get; set; }

Property Value

string

ClusterConfigurator

public Action<ClusterBuilder> ClusterConfigurator { get; set; }

Property Value

Action<ClusterBuilder>

ConnectTimeout

public TimeSpan ConnectTimeout { get; set; }

Property Value

TimeSpan

ConnectionMode

public ConnectionMode ConnectionMode { get; set; }

Property Value

ConnectionMode

Credentials

public IEnumerable<MongoCredential> Credentials { get; set; }

Property Value

IEnumerable<MongoCredential>

GuidRepresentation

public GuidRepresentation GuidRepresentation { get; set; }

Property Value

GuidRepresentation

HeartbeatInterval

public TimeSpan HeartbeatInterval { get; set; }

Property Value

TimeSpan

HeartbeatTimeout

public TimeSpan HeartbeatTimeout { get; set; }

Property Value

TimeSpan

IPv6

public bool IPv6 { get; set; }

Property Value

bool

IsFrozen

public bool IsFrozen { get; }

Property Value

bool

LocalThreshold

public TimeSpan LocalThreshold { get; set; }

Property Value

TimeSpan

MaxConnectionIdleTime

public TimeSpan MaxConnectionIdleTime { get; set; }

Property Value

TimeSpan

MaxConnectionLifeTime

public TimeSpan MaxConnectionLifeTime { get; set; }

Property Value

TimeSpan

MaxConnectionPoolSize

public int MaxConnectionPoolSize { get; set; }

Property Value

int

MinConnectionPoolSize

public int MinConnectionPoolSize { get; set; }

Property Value

int

ReadConcern

public ReadConcern ReadConcern { get; set; }

Property Value

ReadConcern

ReadEncoding

public UTF8Encoding ReadEncoding { get; set; }

Property Value

UTF8Encoding

ReadPreference

public ReadPreference ReadPreference { get; set; }

Property Value

ReadPreference

ReplicaSetName

public string ReplicaSetName { get; set; }

Property Value

string

Server

public MongoServerAddress Server { get; set; }

Property Value

MongoServerAddress

ServerSelectionTimeout

public TimeSpan ServerSelectionTimeout { get; set; }

Property Value

TimeSpan

Servers

public IEnumerable<MongoServerAddress> Servers { get; set; }

Property Value

IEnumerable<MongoServerAddress>

SocketTimeout

public TimeSpan SocketTimeout { get; set; }

Property Value

TimeSpan

SslSettings

public SslSettings SslSettings { get; set; }

Property Value

SslSettings

UseSsl

public bool UseSsl { get; set; }

Property Value

bool

VerifySslCertificate

public bool VerifySslCertificate { get; set; }

Property Value

bool

WaitQueueSize

public int WaitQueueSize { get; set; }

Property Value

int

WaitQueueTimeout

public TimeSpan WaitQueueTimeout { get; set; }

Property Value

TimeSpan

WriteConcern

public WriteConcern WriteConcern { get; set; }

Property Value

WriteConcern

WriteEncoding

public UTF8Encoding WriteEncoding { get; set; }

Property Value

UTF8Encoding

Methods

Clone()

public MongoClientSettings Clone()

Returns

MongoClientSettings

Equals(MongoClientSettings)

public bool Equals(MongoClientSettings obj)

Parameters

obj MongoClientSettings

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Freeze()

public MongoClientSettings Freeze()

Returns

MongoClientSettings

FromUrl(MongoUrl)

public static MongoClientSettings FromUrl(MongoUrl url)

Parameters

url MongoUrl

Returns

MongoClientSettings

FrozenCopy()

public MongoClientSettings FrozenCopy()

Returns

MongoClientSettings

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MongoClientSettings, MongoClientSettings)

public static bool operator ==(MongoClientSettings lhs, MongoClientSettings rhs)

Parameters

lhs MongoClientSettings
rhs MongoClientSettings

Returns

bool

operator !=(MongoClientSettings, MongoClientSettings)

public static bool operator !=(MongoClientSettings lhs, MongoClientSettings rhs)

Parameters

lhs MongoClientSettings
rhs MongoClientSettings

Returns

bool