C# Class MongoDB.Driver.MongoConnectionStringBuilder

Represents .NET style connection strings. We recommend you use URL style connection strings (see MongoUrl and MongoUrlBuilder).
Inheritance: System.Data.Common.DbConnectionStringBuilder
Mostra file Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Private Properties

Property Type Description
AnyWriteConcernSettingsAreSet bool
GetServersString string
IsIntegerType bool
ParseReplicaSetTagSets IEnumerable
ParseServersString IEnumerable
ResetValues void
ToServerSettings MongoServerSettings
ToTimeSpan System.TimeSpan

Public Methods

Method Description
Clear ( ) : void

Clears all settings to their default values.

ContainsKey ( string keyword ) : bool

Tests whether a keyword is valid.

GetWriteConcern ( bool enabledDefault ) : WriteConcern

Returns a WriteConcern value based on this instance's settings and a default enabled value.

MongoConnectionStringBuilder ( ) : System

Creates a new instance of MongoConnectionStringBuilder.

MongoConnectionStringBuilder ( string connectionString ) : System

Creates a new instance of MongoConnectionStringBuilder.

this ( string keyword ) : object

Gets or sets individual settings by keyword.

Private Methods

Method Description
AnyWriteConcernSettingsAreSet ( ) : bool
GetServersString ( IEnumerable servers ) : string
IsIntegerType ( object value ) : bool
ParseReplicaSetTagSets ( string value ) : IEnumerable
ParseServersString ( string value ) : IEnumerable
ResetValues ( ) : void
ToServerSettings ( ) : MongoServerSettings
ToTimeSpan ( string keyword, object value ) : System.TimeSpan

Method Details

Clear() public method

Clears all settings to their default values.
public Clear ( ) : void
return void

ContainsKey() public method

Tests whether a keyword is valid.
public ContainsKey ( string keyword ) : bool
keyword string The keyword.
return bool

GetWriteConcern() public method

Returns a WriteConcern value based on this instance's settings and a default enabled value.
public GetWriteConcern ( bool enabledDefault ) : WriteConcern
enabledDefault bool The default enabled value.
return WriteConcern

MongoConnectionStringBuilder() public method

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

MongoConnectionStringBuilder() public method

Creates a new instance of MongoConnectionStringBuilder.
public MongoConnectionStringBuilder ( string connectionString ) : System
connectionString string The initial settings.
return System

this() public method

Gets or sets individual settings by keyword.
public this ( string keyword ) : object
keyword string The keyword.
return object