AggregateFluentBase<TResult>.ToCursor Method |
Executes the operation and returns a cursor to the results.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntaxpublic virtual IAsyncCursor<TResult> ToCursor(
CancellationToken cancellationToken
)
Public Overridable Function ToCursor (
cancellationToken As CancellationToken
) As IAsyncCursor(Of TResult)
abstract ToCursor :
cancellationToken : CancellationToken -> IAsyncCursor<'TResult>
override ToCursor :
cancellationToken : CancellationToken -> IAsyncCursor<'TResult>
Parameters
- cancellationToken
- Type: System.Threading.CancellationToken
The cancellation token.
Return Value
Type:
IAsyncCursor<TResult>A cursor.
Implements
IAsyncCursorSource<TDocument>.ToCursor(CancellationToken)
See Also