FindFluentBaseTDocument, TProjectionCountAsync Method |
Counts the number of documents.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.1.0
Syntax public abstract Task<long> CountAsync(
CancellationToken cancellationToken = null
)
Public MustOverride Function CountAsync (
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Long)
abstract CountAsync :
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<int64>
Parameters
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskInt64The fluent find interface.
Implements
IFindFluentTDocument, TProjectionCountAsync(CancellationToken)See Also