Method Out
Out(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.
IAsyncCursor<TResult> Out(IMongoCollection<TResult> outputCollection, CancellationToken cancellationToken = default)Parameters
- outputCollectionIMongoCollection<TResult>
- The output collection. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- IAsyncCursor<TResult>
- A cursor. 
Out(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.
IAsyncCursor<TResult> Out(string collectionName, CancellationToken cancellationToken = default)Parameters
- collectionNamestring
- Name of the collection. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- IAsyncCursor<TResult>
- A cursor. 
Out(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.
IAsyncCursor<TResult> Out(IMongoCollection<TResult> outputCollection, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default)Parameters
- outputCollectionIMongoCollection<TResult>
- The output collection. 
- timeSeriesOptionsTimeSeriesOptions
- The time series options. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- IAsyncCursor<TResult>
- A cursor. 
Out(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.
IAsyncCursor<TResult> Out(string collectionName, TimeSeriesOptions timeSeriesOptions, CancellationToken cancellationToken = default)Parameters
- collectionNamestring
- Name of the collection. 
- timeSeriesOptionsTimeSeriesOptions
- The time series options. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- IAsyncCursor<TResult>
- A cursor.