Table of Contents

Method ToCursorAsync

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

ToCursorAsync(CancellationToken)

Executes the operation and returns a cursor to the results.

Task<IAsyncCursor<TDocument>> ToCursorAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IAsyncCursor<TDocument>>

A Task whose result is a cursor.