Platforms to show: All Mac Windows Linux Cross-Platform

Back to MongoURIMBS class.

MongoURIMBS.AuthMechanism as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Authentication mechanism.

Sets the “authMechanism” URI option, such as “SCRAM-SHA-1” or “GSSAPI”, after the URI has been parsed from a string.
Updates the option in-place if already set, otherwise appends it to the URI’s of options.
(Read and Write property)

MongoURIMBS.AuthSource as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Authentication source.

Sets the “authSource” URI option, after the URI has been parsed from a string.
Updates the option in-place if already set, otherwise appends it to the URI’s options.
(Read and Write property)

MongoURIMBS.Compressors as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets or sets compressors to use.

Sets the URI’s compressors, after the URI has been parsed from a string. Will overwrite any previously set value.

Value is a text consisting of one or more comma (,) separated compressors (e.g. “snappy,zlib”) or "".
Passing "" clears any existing compressors set on uri.
(Read and Write property)

MongoURIMBS.DatabaseName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fetches the database portion of an URI if provided.

This is the portion after the / but before the ?.

Sets the URI's database, after the URI has been parsed from a string.

The driver authenticates to this database if the connection string includes authentication credentials. This database is used when you open the default database with DefaultDatabase function.
(Read and Write property)

Some examples using this property:

MongoURIMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal object reference.

(Read only property)

MongoURIMBS.Hosts as MongoHostListMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fetches a linked list of hosts that were defined in the URI (the comma-separated host section).

(Read only property)

MongoURIMBS.Options as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the options from the URL.

Fetches a JSON document containing all of the options provided after the ? of a URI.
Can be empty if not set.
(Read only property)

MongoURIMBS.Password as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fetches the password portion of an URI.
Example

Dim URL As String = "mongodb://myuser:mypass@localhost/"
Dim URI As New MongoURIMBS(URL)

MessageBox URI.Password

(Read and Write property)

MongoURIMBS.ServiceHostName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the hostname for the service.

(Read only property)

MongoURIMBS.ServiceName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the service name.

(Read only property)

MongoURIMBS.TLS as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 23.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this connection is set to be encrypted.

Fetches a boolean indicating if TLS was specified for use in the URI.

Returns a boolean, true indicating that TLS should be used. This returns true if any TLS option is specified.
(Read only property)

MongoURIMBS.URI as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fetches the URI as a string.
Example

dim URL as string = "mongodb://localhost/"
dim URI as new MongoURIMBS(URL)

MessageBox URI.URI

(Read only property)

MongoURIMBS.UserName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fetches the username portion of a URI.
Example

dim URL as string = "mongodb://myuser:mypass@localhost/"
dim URI as new MongoURIMBS(URL)

MessageBox URI.UserName+EndOfLine+uri.Password

(Read and Write property)

The items on this page are in the following plugins: MBS MongoDB Plugin.


The biggest plugin in space...