On this page
Gets or sets a MongoDB connection string URI (mongodb:// or mongodb+srv://) used as the base of the connection;
User Id,
Password,
Host,
Port, and
Additional Servers replace its parts, other keywords add options.
Port and
Additional Servers replace the hosts of Url only together with
Host: with Url set and
Host empty, setting
Port or
Additional Servers throws
System.ArgumentException when the connection string is parsed, and so does
Password without
User Id. The default value is an empty string.
Syntax
|
|---|
'Declaration
Public Property Url As String |
See Also