Method Out
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Out(IMongoCollection, 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
outputCollection IMongoCollection
The output collection.
cancellationToken CancellationToken
The cancellation token.
Returns
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
collectionName string
Name of the collection.
cancellationToken CancellationToken
The cancellation token.
Returns
A cursor.
Out(IMongoCollection, 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
outputCollection IMongoCollection
The output collection.
timeSeriesOptions TimeSeriesOptions
The time series options.
cancellationToken CancellationToken
The cancellation token.
Returns
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
collectionName string
Name of the collection.
timeSeriesOptions TimeSeriesOptions
The time series options.
cancellationToken CancellationToken
The cancellation token.
Returns
A cursor.