@@ -48,6 +48,9 @@ and the ``tls`` option with a value of ``true``:
48
48
:start-after: // start local connection config
49
49
:end-before: // end local connection config
50
50
51
+ To learn more about the options that you can specify in a connection URI, see
52
+ :manual:`</reference/connection-string-options>` in the {+mdb-server+} manual.
53
+
51
54
.. _csharp-mongo-client-settings:
52
55
53
56
-----------------------------
@@ -120,81 +123,56 @@ options. These properties are listed in the ``MongoUrl`` column of the table.
120
123
Replica Set Options
121
124
-------------------
122
125
126
+ ReplicaSetName
127
+ ~~~~~~~~~~~~~~
128
+
129
+ .. include:: /includes/fundamentals/connection-options/replicaSetName.rst
130
+
123
131
.. tabs::
124
132
125
133
.. tab:: MongoClientSettings
126
134
:tabid: mongo-client-settings
127
-
128
- ReplicaSetName
129
- ~~~~~~~~~~~~~~
130
-
131
- .. include:: /includes/fundamentals/connection-options/replicaSetName.rst
132
135
133
136
.. code-block:: none
134
137
:copyable: true
135
138
136
139
var settings = new MongoClientSettings();
137
140
settings.ReplicaSetName = "yourReplicaSet";
138
141
139
- DirectConnection
140
- ~~~~~~~~~~~~~~~~
141
-
142
- .. include:: /includes/fundamentals/connection-options/directConnection.rst
143
-
144
- .. code-block:: csharp
145
- :copyable: true
146
-
147
- var settings = new MongoClientSettings();
148
- settings.DirectConnection = true;
149
-
150
142
.. tab:: MongoUrlBuilder
151
143
:tabid: mongo-url-builder
152
144
153
- ReplicaSetName
154
- ~~~~~~~~~~~~~~
155
-
156
- .. include:: /includes/fundamentals/connection-options/replicaSetName.rst
157
-
158
145
.. code-block:: none
159
146
:copyable: true
160
147
161
148
var builder = new MongoUrlBuilder();
162
149
builder.ReplicaSetName = "yourReplicaSet";
163
150
164
- DirectConnection
165
- ~~~~~~~~~~~~~~~~
151
+ DirectConnection
152
+ ~~~~~~~~~~~~~~~~
166
153
167
- .. include:: /includes/fundamentals/connection-options/directConnection.rst
168
-
169
- .. code-block:: csharp
170
- :copyable: true
154
+ .. include:: /includes/fundamentals/connection-options/directConnection.rst
171
155
172
- var builder = new MongoUrlBuilder();
173
- builder.DirectConnection = true;
174
-
175
- .. tab:: Connection URI
176
- :tabid: connection-uri
177
-
178
- replicaSet
179
- ~~~~~~~~~~
156
+ .. tabs::
180
157
181
- .. include:: /includes/fundamentals/connection-options/replicaSetName.rst
158
+ .. tab:: MongoClientSettings
159
+ :tabid: mongo-client-settings
182
160
183
- .. code-block:: none
161
+ .. code-block:: csharp
184
162
:copyable: true
185
163
186
- mongodb://localhost:27017/?replicaSet=yourReplicaSet
164
+ var settings = new MongoClientSettings();
165
+ settings.DirectConnection = true;
187
166
188
- directConnection
189
- ~~~~~~~~~~~~~~~~
167
+ .. tab:: MongoUrlBuilder
168
+ :tabid: mongo-url-builder
190
169
191
- .. include:: /includes/fundamentals/connection-options/directConnection.rst
192
-
193
- .. code-block:: none
170
+ .. code-block:: csharp
194
171
:copyable: true
195
172
196
- mongodb://localhost:27017/?directConnection=true
197
-
173
+ var builder = new MongoUrlBuilder();
174
+ builder.DirectConnection = true;
175
+
198
176
TLS Options
199
177
-----------
200
178
0 commit comments