Table of Contents

Method OutAsync

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

OutAsync(IMongoCollection<TResult>, CancellationToken)

Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.

Task<IAsyncCursor<TResult>> OutAsync(IMongoCollection<TResult> outputCollection, CancellationToken cancellationToken = default)

Parameters

outputCollection IMongoCollection<TResult>

The output collection.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IAsyncCursor<TResult>>

A Task whose result is a cursor.

OutAsync(string, CancellationToken)

Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.

Task<IAsyncCursor<TResult>> OutAsync(string collectionName, CancellationToken cancellationToken = default)

Parameters

collectionName string

Name of the collection.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IAsyncCursor<TResult>>

A Task whose result is a cursor.

OutAsync(IMongoCollection<TResult>, TimeSeriesOptions, CancellationToken)

Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.

Task<IAsyncCursor<TResult>> OutAsync(IMongoCollection<TResult> outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default)

Parameters

outputCollection IMongoCollection<TResult>

The output collection.

timeSeriesOptions TimeSeriesOptions

The time series options.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IAsyncCursor<TResult>>

A Task whose result is a cursor.

OutAsync(string, TimeSeriesOptions, CancellationToken)

Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.

Task<IAsyncCursor<TResult>> OutAsync(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default)

Parameters

collectionName string

Name of the collection.

timeSeriesOptions TimeSeriesOptions

The time series options.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IAsyncCursor<TResult>>

A Task whose result is a cursor.