Skip to content

Commit 648eaaa

Browse files
committed
test
1 parent f5e6460 commit 648eaaa

File tree

1 file changed

+23
-45
lines changed

1 file changed

+23
-45
lines changed

source/connect/connection-options.txt

Lines changed: 23 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ and the ``tls`` option with a value of ``true``:
4848
:start-after: // start local connection config
4949
:end-before: // end local connection config
5050

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+
5154
.. _csharp-mongo-client-settings:
5255

5356
-----------------------------
@@ -120,81 +123,56 @@ options. These properties are listed in the ``MongoUrl`` column of the table.
120123
Replica Set Options
121124
-------------------
122125

126+
ReplicaSetName
127+
~~~~~~~~~~~~~~
128+
129+
.. include:: /includes/fundamentals/connection-options/replicaSetName.rst
130+
123131
.. tabs::
124132

125133
.. tab:: MongoClientSettings
126134
:tabid: mongo-client-settings
127-
128-
ReplicaSetName
129-
~~~~~~~~~~~~~~
130-
131-
.. include:: /includes/fundamentals/connection-options/replicaSetName.rst
132135

133136
.. code-block:: none
134137
:copyable: true
135138

136139
var settings = new MongoClientSettings();
137140
settings.ReplicaSetName = "yourReplicaSet";
138141

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-
150142
.. tab:: MongoUrlBuilder
151143
:tabid: mongo-url-builder
152144

153-
ReplicaSetName
154-
~~~~~~~~~~~~~~
155-
156-
.. include:: /includes/fundamentals/connection-options/replicaSetName.rst
157-
158145
.. code-block:: none
159146
:copyable: true
160147

161148
var builder = new MongoUrlBuilder();
162149
builder.ReplicaSetName = "yourReplicaSet";
163150

164-
DirectConnection
165-
~~~~~~~~~~~~~~~~
151+
DirectConnection
152+
~~~~~~~~~~~~~~~~
166153

167-
.. include:: /includes/fundamentals/connection-options/directConnection.rst
168-
169-
.. code-block:: csharp
170-
:copyable: true
154+
.. include:: /includes/fundamentals/connection-options/directConnection.rst
171155

172-
var builder = new MongoUrlBuilder();
173-
builder.DirectConnection = true;
174-
175-
.. tab:: Connection URI
176-
:tabid: connection-uri
177-
178-
replicaSet
179-
~~~~~~~~~~
156+
.. tabs::
180157

181-
.. include:: /includes/fundamentals/connection-options/replicaSetName.rst
158+
.. tab:: MongoClientSettings
159+
:tabid: mongo-client-settings
182160

183-
.. code-block:: none
161+
.. code-block:: csharp
184162
:copyable: true
185163

186-
mongodb://localhost:27017/?replicaSet=yourReplicaSet
164+
var settings = new MongoClientSettings();
165+
settings.DirectConnection = true;
187166

188-
directConnection
189-
~~~~~~~~~~~~~~~~
167+
.. tab:: MongoUrlBuilder
168+
:tabid: mongo-url-builder
190169

191-
.. include:: /includes/fundamentals/connection-options/directConnection.rst
192-
193-
.. code-block:: none
170+
.. code-block:: csharp
194171
:copyable: true
195172

196-
mongodb://localhost:27017/?directConnection=true
197-
173+
var builder = new MongoUrlBuilder();
174+
builder.DirectConnection = true;
175+
198176
TLS Options
199177
-----------
200178

0 commit comments

Comments
 (0)