Click or drag to resize

MongoUrl Methods

The MongoUrl type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClearCache
Clears the URL cache. When a URL is parsed it is stored in the cache so that it doesn't have to be parsed again. There is rarely a need to call this method.
Public methodStatic memberCreate
Creates an instance of MongoUrl (might be an existing existence if the same URL has been used before).
Public methodEquals(Object)
Compares two MongoUrls.
(Overrides ObjectEquals(Object).)
Public methodEquals(MongoUrl)
Compares two MongoUrls.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCredential
Gets the credential.
Public methodGetHashCode
Gets the hash code.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWriteConcern
Returns a WriteConcern value based on this instance's settings and a default enabled value.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResolve
Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
Public methodResolveAsync
Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
Public methodToString
Returns the canonical URL based on the settings in this MongoUrlBuilder.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also