C# Class MongoDB.Driver.MongoUrlBuilder

Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat WriteConcern

MongoUrlBuilder() public méthode

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

MongoUrlBuilder() public méthode

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

Parse() public méthode

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

ToMongoUrl() public méthode

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

ToString() public méthode

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