Class MongoUrlBuilder
- Namespace
- MongoDB.Driver
- Assembly
- MongoDB.Driver.dll
public class MongoUrlBuilder
- Inheritance
-
MongoUrlBuilder
- Inherited Members
-
Constructors
MongoUrlBuilder()
MongoUrlBuilder(string)
public MongoUrlBuilder(string url)
Parameters
url
string
Properties
ApplicationName
public string ApplicationName { get; set; }
Property Value
- string
AuthenticationMechanism
public string AuthenticationMechanism { get; set; }
Property Value
- string
AuthenticationMechanismProperties
public IEnumerable<KeyValuePair<string, string>> AuthenticationMechanismProperties { get; set; }
Property Value
- IEnumerable<KeyValuePair<string, string>>
AuthenticationSource
public string AuthenticationSource { get; set; }
Property Value
- string
ComputedWaitQueueSize
public int ComputedWaitQueueSize { get; }
Property Value
- int
ConnectTimeout
public TimeSpan ConnectTimeout { get; set; }
Property Value
- TimeSpan
ConnectionMode
public ConnectionMode ConnectionMode { get; set; }
Property Value
- ConnectionMode
DatabaseName
public string DatabaseName { get; set; }
Property Value
- string
FSync
public bool? FSync { get; set; }
Property Value
- bool?
GuidRepresentation
public GuidRepresentation GuidRepresentation { get; set; }
Property Value
- GuidRepresentation
HeartbeatInterval
public TimeSpan HeartbeatInterval { get; set; }
Property Value
- TimeSpan
HeartbeatTimeout
public TimeSpan HeartbeatTimeout { get; set; }
Property Value
- TimeSpan
IPv6
public bool IPv6 { get; set; }
Property Value
- bool
Journal
public bool? Journal { get; set; }
Property Value
- bool?
LocalThreshold
public TimeSpan LocalThreshold { get; set; }
Property Value
- TimeSpan
MaxConnectionIdleTime
public TimeSpan MaxConnectionIdleTime { get; set; }
Property Value
- TimeSpan
MaxConnectionLifeTime
public TimeSpan MaxConnectionLifeTime { get; set; }
Property Value
- TimeSpan
MaxConnectionPoolSize
public int MaxConnectionPoolSize { get; set; }
Property Value
- int
MinConnectionPoolSize
public int MinConnectionPoolSize { get; set; }
Property Value
- int
Password
public string Password { get; set; }
Property Value
- string
ReadConcernLevel
public ReadConcernLevel? ReadConcernLevel { get; set; }
Property Value
- ReadConcernLevel?
ReadPreference
public ReadPreference ReadPreference { get; set; }
Property Value
- ReadPreference
ReplicaSetName
public string ReplicaSetName { get; set; }
Property Value
- string
Server
public MongoServerAddress Server { get; set; }
Property Value
- MongoServerAddress
ServerSelectionTimeout
public TimeSpan ServerSelectionTimeout { get; set; }
Property Value
- TimeSpan
Servers
public IEnumerable<MongoServerAddress> Servers { get; set; }
Property Value
- IEnumerable<MongoServerAddress>
SocketTimeout
public TimeSpan SocketTimeout { get; set; }
Property Value
- TimeSpan
UseSsl
public bool UseSsl { get; set; }
Property Value
- bool
Username
public string Username { get; set; }
Property Value
- string
VerifySslCertificate
public bool VerifySslCertificate { get; set; }
Property Value
- bool
W
public WriteConcern.WValue W { get; set; }
Property Value
- WValue
WTimeout
public TimeSpan? WTimeout { get; set; }
Property Value
- TimeSpan?
WaitQueueMultiple
public double WaitQueueMultiple { get; set; }
Property Value
- double
WaitQueueSize
public int WaitQueueSize { get; set; }
Property Value
- int
WaitQueueTimeout
public TimeSpan WaitQueueTimeout { get; set; }
Property Value
- TimeSpan
Methods
GetWriteConcern(bool)
public WriteConcern GetWriteConcern(bool enabledDefault)
Parameters
enabledDefault
bool
Returns
- WriteConcern
Parse(string)
public void Parse(string url)
Parameters
url
string
ToMongoUrl()
public MongoUrl ToMongoUrl()
Returns
- MongoUrl
ToString()
public override string ToString()
Returns
- string