We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7942d08 commit b34ba7cCopy full SHA for b34ba7c
source/connect/mongoclient.txt
@@ -106,12 +106,11 @@ You can configure settings for the ``MongoClient`` object by passing a
106
107
.. code-block:: csharp
108
109
- var mongoClientSettings = MongoClientSettings
110
- .FromConnectionString("mongodb://localhost:27017/");
111
- .UseTls = true;
112
- var client = new MongoClient(mongoClientSettings);
+ var connectionString = "mongodb://localhost:27017/"
+ var settings = MongoClientSettings.FromConnectionString(connectionString);
+ settings.UseTls = true;
113
114
-For a full list of the settings you can configure, see the
+To view a full list of the settings you can configure, see the
115
:ref:`csharp-connection-options` guide.
116
117
API Documentation
0 commit comments