@@ -39,9 +39,9 @@ free MongoDB Atlas cluster and load the sample datasets, see the :ref:`<csharp-q
39
39
Retrieve Distinct Values
40
40
------------------------
41
41
42
- To retrieve the distinct values for a specified field, call the ``IMongoCollection<TDocument>. Distinct()``
43
- or ``IMongoCollection<TDocument>.DistinctAsync() `` method and pass the name of the field
44
- you want to find distinct values for.
42
+ To retrieve the distinct values for a specified field, call the ``Distinct()`` or
43
+ ``DistinctAsync()`` method of an ``IMongoCollection<TDocument>`` instance and pass the name
44
+ of the field you want to find distinct values for.
45
45
46
46
Retrieve Values Across a Collection
47
47
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -50,7 +50,6 @@ The following example retrieves the distinct values of the ``borough`` field in
50
50
the ``restaurants`` collection. Select the :guilabel:`Asynchronous` or :guilabel:`Synchronous`
51
51
tab to see the corresponding code.
52
52
53
-
54
53
.. tabs::
55
54
56
55
.. tab:: Asynchronous
@@ -173,15 +172,15 @@ describes the properties you can set on a ``DistinctOptions`` instance:
173
172
174
173
* - ``Collation``
175
174
- | Sets the collation to use for the operation.
176
- | **Parameter Type **: `` Collation``
175
+ | **Data type **: `Collation <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.DistinctOptions.Collation.html>`__
177
176
178
177
* - ``MaxTime``
179
178
- | Sets the maximum amount of time that the operation can run.
180
- | **Parameter Type **: ``TimeSpan``
179
+ | **Data type **: ``TimeSpan``
181
180
182
181
* - ``Comment``
183
182
- | Attaches a comment to the operation.
184
- | **Parameter Type **: `` BsonValue`` or ``String ``
183
+ | **Data type **: `BsonValue <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.html>`__ or ``string ``
185
184
186
185
The following example retrieves the distinct values of the ``name`` field for
187
186
all documents that have a ``borough`` field value of ``"Bronx"`` and a
0 commit comments