Class MongoUrl
- Namespace
- MongoDB.Driver
- Assembly
- MongoDB.Driver.dll
public class MongoUrl : IEquatable<MongoUrl>
- Inheritance
-
MongoUrl
- Implements
-
- Inherited Members
-
Constructors
MongoUrl(string)
public MongoUrl(string url)
Parameters
url
string
Properties
ApplicationName
public string ApplicationName { get; }
Property Value
- string
AuthenticationMechanism
public string AuthenticationMechanism { get; }
Property Value
- string
AuthenticationMechanismProperties
public IEnumerable<KeyValuePair<string, string>> AuthenticationMechanismProperties { get; }
Property Value
- IEnumerable<KeyValuePair<string, string>>
AuthenticationSource
public string AuthenticationSource { get; }
Property Value
- string
ComputedWaitQueueSize
public int ComputedWaitQueueSize { get; }
Property Value
- int
ConnectTimeout
public TimeSpan ConnectTimeout { get; }
Property Value
- TimeSpan
ConnectionMode
public ConnectionMode ConnectionMode { get; }
Property Value
- ConnectionMode
DatabaseName
public string DatabaseName { get; }
Property Value
- string
FSync
public bool? FSync { get; }
Property Value
- bool?
GuidRepresentation
public GuidRepresentation GuidRepresentation { get; }
Property Value
- GuidRepresentation
HasAuthenticationSettings
public bool HasAuthenticationSettings { get; }
Property Value
- bool
HeartbeatInterval
public TimeSpan HeartbeatInterval { get; }
Property Value
- TimeSpan
HeartbeatTimeout
public TimeSpan HeartbeatTimeout { get; }
Property Value
- TimeSpan
IPv6
public bool IPv6 { get; }
Property Value
- bool
Journal
public bool? Journal { get; }
Property Value
- bool?
LocalThreshold
public TimeSpan LocalThreshold { get; }
Property Value
- TimeSpan
MaxConnectionIdleTime
public TimeSpan MaxConnectionIdleTime { get; }
Property Value
- TimeSpan
MaxConnectionLifeTime
public TimeSpan MaxConnectionLifeTime { get; }
Property Value
- TimeSpan
MaxConnectionPoolSize
public int MaxConnectionPoolSize { get; }
Property Value
- int
MinConnectionPoolSize
public int MinConnectionPoolSize { get; }
Property Value
- int
Password
public string Password { get; }
Property Value
- string
ReadConcernLevel
public ReadConcernLevel? ReadConcernLevel { get; }
Property Value
- ReadConcernLevel?
ReadPreference
public ReadPreference ReadPreference { get; }
Property Value
- ReadPreference
ReplicaSetName
public string ReplicaSetName { get; }
Property Value
- string
Server
public MongoServerAddress Server { get; }
Property Value
- MongoServerAddress
ServerSelectionTimeout
public TimeSpan ServerSelectionTimeout { get; }
Property Value
- TimeSpan
Servers
public IEnumerable<MongoServerAddress> Servers { get; }
Property Value
- IEnumerable<MongoServerAddress>
SocketTimeout
public TimeSpan SocketTimeout { get; }
Property Value
- TimeSpan
Url
public string Url { get; }
Property Value
- string
UseSsl
public bool UseSsl { get; }
Property Value
- bool
Username
public string Username { get; }
Property Value
- string
VerifySslCertificate
public bool VerifySslCertificate { get; }
Property Value
- bool
W
public WriteConcern.WValue W { get; }
Property Value
- WValue
WTimeout
public TimeSpan? WTimeout { get; }
Property Value
- TimeSpan?
WaitQueueMultiple
public double WaitQueueMultiple { get; }
Property Value
- double
WaitQueueSize
public int WaitQueueSize { get; }
Property Value
- int
WaitQueueTimeout
public TimeSpan WaitQueueTimeout { get; }
Property Value
- TimeSpan
Methods
ClearCache()
public static void ClearCache()
Create(string)
public static MongoUrl Create(string url)
Parameters
url
string
Returns
- MongoUrl
Equals(MongoUrl)
public bool Equals(MongoUrl rhs)
Parameters
rhs
MongoUrl
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
- bool
GetCredential()
public MongoCredential GetCredential()
Returns
- MongoCredential
GetHashCode()
public override int GetHashCode()
Returns
- int
GetWriteConcern(bool)
public WriteConcern GetWriteConcern(bool enabledDefault)
Parameters
enabledDefault
bool
Returns
- WriteConcern
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(MongoUrl, MongoUrl)
public static bool operator ==(MongoUrl lhs, MongoUrl rhs)
Parameters
lhs
MongoUrl
rhs
MongoUrl
Returns
- bool
operator !=(MongoUrl, MongoUrl)
public static bool operator !=(MongoUrl lhs, MongoUrl rhs)
Parameters
lhs
MongoUrl
rhs
MongoUrl
Returns
- bool