File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ The following example shows how to create a session by calling the ``StartSessio
49
49
method:
50
50
51
51
.. code-block::
52
+ :language: csharp
52
53
53
54
var client = new MongoClient("mongodb://localhost:27017");
54
55
var session = client.StartSession();
@@ -83,7 +84,7 @@ describes the properties that you can set on a ``ClientSessionOptions`` object:
83
84
| **Default**: ``true``
84
85
85
86
* - ``DefaultTransactionOptions``
86
- - The default transaction options for the session. This includes the maximum commit
87
+ - Specifies the default transaction options for the session. This includes the maximum commit
87
88
time, read concern, read preference, and write concern.
88
89
|
89
90
| **Data Type**: `TransactionOptions <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.TransactionOptions.html>`__
@@ -100,6 +101,7 @@ describes the properties that you can set on a ``ClientSessionOptions`` object:
100
101
The following code example shows how to create a session with custom options:
101
102
102
103
.. code-block::
104
+ :language: csharp
103
105
104
106
var client = new MongoClient("mongodb://localhost:27017");
105
107
var sessionOptions = new ClientSessionOptions
You can’t perform that action at this time.
0 commit comments