dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBConnectionStringBuilder Class / Url Property

On this page
    Url Property
    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
    public string Url {get; set;}
    Remarks
    Connection string keyword: Url.
    See Also