C# Класс MongoDB.Driver.MongoServerSettings

The settings used to access a MongoDB server.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
MongoServerSettings System

Открытые методы

Метод Описание
Clone ( ) : MongoServerSettings

Creates a clone of the settings.

Equals ( object obj ) : bool

Compares two MongoServerSettings instances.

Freeze ( ) : MongoServerSettings

Freezes the settings.

FromClientSettings ( MongoClientSettings clientSettings ) : MongoServerSettings

Creates a new MongoServerSettings object from a MongoClientSettings object.

FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoServerSettings

Gets a MongoServerSettings object intialized with values from a MongoConnectionStringBuilder.

FromUrl ( MongoDB.Driver.MongoUrl url ) : MongoServerSettings

Gets a MongoServerSettings object intialized with values from a MongoUrl.

FrozenCopy ( ) : MongoServerSettings

Returns a frozen copy of the settings.

GetCredentials ( string databaseName ) : MongoDB.Driver.MongoCredentials

Gets credentials for a particular database.

GetHashCode ( ) : int

Gets the hash code.

MongoServerSettings ( ) : System

Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.

ToString ( ) : string

Returns a string representation of the settings.

Приватные методы

Метод Описание
MongoServerSettings ( ConnectionMode connectionMode, System.TimeSpan connectTimeout, MongoCredentialsStore credentialsStore, MongoDB.Driver.MongoCredentials defaultCredentials, GuidRepresentation guidRepresentation, bool ipv6, System.TimeSpan maxConnectionIdleTime, System.TimeSpan maxConnectionLifeTime, int maxConnectionPoolSize, int minConnectionPoolSize, ReadPreference readPreference, string replicaSetName, MongoDB.Driver.SafeMode safeMode, System.TimeSpan secondaryAcceptableLatency, IEnumerable servers, System.TimeSpan socketTimeout, bool useSsl, bool verifySslCertificate, int waitQueueSize, System.TimeSpan waitQueueTimeout ) : System

Описание методов

Clone() публичный Метод

Creates a clone of the settings.
public Clone ( ) : MongoServerSettings
Результат MongoServerSettings

Equals() публичный Метод

Compares two MongoServerSettings instances.
public Equals ( object obj ) : bool
obj object The other instance.
Результат bool

Freeze() публичный Метод

Freezes the settings.
public Freeze ( ) : MongoServerSettings
Результат MongoServerSettings

FromClientSettings() публичный статический Метод

Creates a new MongoServerSettings object from a MongoClientSettings object.
public static FromClientSettings ( MongoClientSettings clientSettings ) : MongoServerSettings
clientSettings MongoClientSettings The MongoClientSettings.
Результат MongoServerSettings

FromConnectionStringBuilder() публичный статический Метод

Gets a MongoServerSettings object intialized with values from a MongoConnectionStringBuilder.
public static FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoServerSettings
builder MongoConnectionStringBuilder The MongoConnectionStringBuilder.
Результат MongoServerSettings

FromUrl() публичный статический Метод

Gets a MongoServerSettings object intialized with values from a MongoUrl.
public static FromUrl ( MongoDB.Driver.MongoUrl url ) : MongoServerSettings
url MongoDB.Driver.MongoUrl The MongoUrl.
Результат MongoServerSettings

FrozenCopy() публичный Метод

Returns a frozen copy of the settings.
public FrozenCopy ( ) : MongoServerSettings
Результат MongoServerSettings

GetCredentials() публичный Метод

Gets credentials for a particular database.
public GetCredentials ( string databaseName ) : MongoDB.Driver.MongoCredentials
databaseName string The database name.
Результат MongoDB.Driver.MongoCredentials

GetHashCode() публичный Метод

Gets the hash code.
public GetHashCode ( ) : int
Результат int

MongoServerSettings() публичный Метод

Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.
public MongoServerSettings ( ) : System
Результат System

ToString() публичный Метод

Returns a string representation of the settings.
public ToString ( ) : string
Результат string