Method ToString NamespaceMongoDB.Driver AssemblyMongoDB.Driver.dll ToString() Returns the canonical URL based on the settings in this MongoUrlBuilder. public override string ToString() Returns string The canonical URL.