Method ToCursor

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

ToCursor(CancellationToken)

Executes the operation and returns a cursor to the results.

public virtual IAsyncCursor<TProjection> ToCursor(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor

A cursor.