Table of Contents

Method ToCursor

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

ToCursor(CancellationToken)

Executes the operation and returns a cursor to the results.

IAsyncCursor<TDocument> ToCursor(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor<TDocument>

A cursor.