C# Class MongoDB.Driver.MongoDatabaseSettings

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

Private Properties

Свойство Type Description
ApplyDefaultValues void
MongoDatabaseSettings System
MongoDatabaseSettings System

Méthodes publiques

Méthode Description
Clone ( ) : MongoDatabaseSettings

Creates a clone of the settings.

Equals ( object obj ) : bool

Compares two MongoDatabaseSettings instances.

Freeze ( ) : MongoDatabaseSettings

Freezes the settings.

FrozenCopy ( ) : MongoDatabaseSettings

Returns a frozen copy of the settings.

GetHashCode ( ) : int

Gets the hash code.

MongoDatabaseSettings ( ) : System

Creates a new instance of MongoDatabaseSettings.

ToString ( ) : string

Returns a string representation of the settings.

Private Methods

Méthode Description
ApplyDefaultValues ( MongoServerSettings serverSettings ) : void
MongoDatabaseSettings ( MongoServer server, string databaseName ) : System
MongoDatabaseSettings ( string databaseName, MongoDB.Driver.MongoCredentials credentials, GuidRepresentation guidRepresentation, ReadPreference readPreference, WriteConcern writeConcern ) : System

Method Details

Clone() public méthode

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

Equals() public méthode

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

Freeze() public méthode

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

FrozenCopy() public méthode

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

GetHashCode() public méthode

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

MongoDatabaseSettings() public méthode

Creates a new instance of MongoDatabaseSettings.
public MongoDatabaseSettings ( ) : System
Résultat System

ToString() public méthode

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