C# Class MongoDB.Driver.MongoServerSettings

The settings used to access a MongoDB server.
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Private Properties

Свойство Type Description
MongoServerSettings System

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

Clone() public méthode

Creates a clone of the settings.
public Clone ( ) : MongoServerSettings
Résultat MongoServerSettings

Equals() public méthode

Compares two MongoServerSettings instances.
public Equals ( object obj ) : bool
obj object The other instance.
Résultat bool

Freeze() public méthode

Freezes the settings.
public Freeze ( ) : MongoServerSettings
Résultat MongoServerSettings

FromClientSettings() public static méthode

Creates a new MongoServerSettings object from a MongoClientSettings object.
public static FromClientSettings ( MongoClientSettings clientSettings ) : MongoServerSettings
clientSettings MongoClientSettings The MongoClientSettings.
Résultat MongoServerSettings

FromConnectionStringBuilder() public static méthode

Gets a MongoServerSettings object intialized with values from a MongoConnectionStringBuilder.
public static FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoServerSettings
builder MongoConnectionStringBuilder The MongoConnectionStringBuilder.
Résultat MongoServerSettings

FromUrl() public static méthode

Gets a MongoServerSettings object intialized with values from a MongoUrl.
public static FromUrl ( MongoDB.Driver.MongoUrl url ) : MongoServerSettings
url MongoDB.Driver.MongoUrl The MongoUrl.
Résultat MongoServerSettings

FrozenCopy() public méthode

Returns a frozen copy of the settings.
public FrozenCopy ( ) : MongoServerSettings
Résultat MongoServerSettings

GetCredentials() public méthode

Gets credentials for a particular database.
public GetCredentials ( string databaseName ) : MongoDB.Driver.MongoCredentials
databaseName string The database name.
Résultat MongoDB.Driver.MongoCredentials

GetHashCode() public méthode

Gets the hash code.
public GetHashCode ( ) : int
Résultat int

MongoServerSettings() public méthode

Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.
public MongoServerSettings ( ) : System
Résultat System

ToString() public méthode

Returns a string representation of the settings.
public ToString ( ) : string
Résultat string