C# Class MongoDB.Driver.MongoDatabaseSettings

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

Private Properties

Property Type Description
ApplyDefaultValues void
MongoDatabaseSettings System
MongoDatabaseSettings System

Public Methods

Method 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

Method 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 method

Creates a clone of the settings.
public Clone ( ) : MongoDatabaseSettings
return MongoDatabaseSettings

Equals() public method

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

Freeze() public method

Freezes the settings.
public Freeze ( ) : MongoDatabaseSettings
return MongoDatabaseSettings

FrozenCopy() public method

Returns a frozen copy of the settings.
public FrozenCopy ( ) : MongoDatabaseSettings
return MongoDatabaseSettings

GetHashCode() public method

Gets the hash code.
public GetHashCode ( ) : int
return int

MongoDatabaseSettings() public method

Creates a new instance of MongoDatabaseSettings.
public MongoDatabaseSettings ( ) : System
return System

ToString() public method

Returns a string representation of the settings.
public ToString ( ) : string
return string