public static FromUrl ( MongoDB.Driver.MongoUrl url ) : |
||
url | MongoDB.Driver.MongoUrl | The MongoURL. |
리턴 |
/// <summary> /// Initializes a new instance of the MongoClient class. /// </summary> /// <param name="url">The URL.</param> public MongoClient(MongoUrl url) : this(MongoClientSettings.FromUrl(url)) { }
// private static methods private static MongoClientSettings ParseConnectionString(string connectionString) { var url = new MongoUrl(connectionString); return(MongoClientSettings.FromUrl(url)); }