C# Class MongoDB.Driver.MongoUrlBuilder

Show file Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Private Properties

Property Type Description
AnyWriteConcernSettingsAreSet bool
FormatMessage string
FormatTimeSpan string
ParseBoolean bool
ParseConnectionMode ConnectionMode
ParseDouble double
ParseInt32 int
ParseReadPreferenceMode ReadPreferenceMode
ParseReplicaSetTagSet ReplicaSetTagSet
ParseTimeSpan System.TimeSpan
ToServerSettings MongoServerSettings
TryParseTimeSpan bool

Public Methods

Method Description
GetWriteConcern ( bool enabledDefault ) : WriteConcern

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

MongoUrlBuilder ( ) : System

Creates a new instance of MongoUrlBuilder.

MongoUrlBuilder ( string url ) : System

Creates a new instance of MongoUrlBuilder.

Parse ( string url ) : void

Parses a URL and sets all settings to match the URL.

ToMongoUrl ( ) : MongoDB.Driver.MongoUrl

Creates a new instance of MongoUrl based on the settings in this MongoUrlBuilder.

ToString ( ) : string

Returns the canonical URL based on the settings in this MongoUrlBuilder.

Private Methods

Method Description
AnyWriteConcernSettingsAreSet ( ) : bool
FormatMessage ( string name, string value ) : string
FormatTimeSpan ( System.TimeSpan value ) : string
ParseBoolean ( string name, string s ) : bool
ParseConnectionMode ( string name, string s ) : ConnectionMode
ParseDouble ( string name, string s ) : double
ParseInt32 ( string name, string s ) : int
ParseReadPreferenceMode ( string name, string s ) : ReadPreferenceMode
ParseReplicaSetTagSet ( string name, string s ) : ReplicaSetTagSet
ParseTimeSpan ( string name, string s ) : System.TimeSpan
ToServerSettings ( ) : MongoServerSettings
TryParseTimeSpan ( string name, string s, System.TimeSpan &result ) : bool

Method Details

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

MongoUrlBuilder() public method

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

MongoUrlBuilder() public method

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

Parse() public method

Parses a URL and sets all settings to match the URL.
public Parse ( string url ) : void
url string The URL.
return void

ToMongoUrl() public method

Creates a new instance of MongoUrl based on the settings in this MongoUrlBuilder.
public ToMongoUrl ( ) : MongoDB.Driver.MongoUrl
return MongoDB.Driver.MongoUrl

ToString() public method

Returns the canonical URL based on the settings in this MongoUrlBuilder.
public ToString ( ) : string
return string