C# Class MongoDB.Driver.MongoClientSettings

The settings for a MongoDB client.
Exibir arquivo Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
Clone ( ) : MongoClientSettings

Creates a clone of the settings.

Equals ( object obj ) : bool

Compares two MongoClientSettings instances.

Freeze ( ) : MongoClientSettings

Freezes the settings.

FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoClientSettings

Gets a MongoClientSettings object intialized with values from a connection string builder.

FromUrl ( MongoDB.Driver.MongoUrl url ) : MongoClientSettings

Gets a MongoClientSettings object intialized with values from a MongoURL.

FrozenCopy ( ) : MongoClientSettings

Returns a frozen copy of the settings.

GetHashCode ( ) : int

Gets the hash code.

MongoClientSettings ( ) : System

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

ToString ( ) : string

Returns a string representation of the settings.

Method Details

Clone() public method

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

Equals() public method

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

Freeze() public method

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

FromConnectionStringBuilder() public static method

Gets a MongoClientSettings object intialized with values from a connection string builder.
public static FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoClientSettings
builder MongoConnectionStringBuilder The connection string builder.
return MongoClientSettings

FromUrl() public static method

Gets a MongoClientSettings object intialized with values from a MongoURL.
public static FromUrl ( MongoDB.Driver.MongoUrl url ) : MongoClientSettings
url MongoDB.Driver.MongoUrl The MongoURL.
return MongoClientSettings

FrozenCopy() public method

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

GetHashCode() public method

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

MongoClientSettings() public method

Creates a new instance of MongoClientSettings. Usually you would use a connection string instead.
public MongoClientSettings ( ) : System
return System

ToString() public method

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