Method ToCollection

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

ToCollection(CancellationToken)

Executes an aggregation pipeline that writes the results to a collection.

void ToCollection(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.