Table of Contents

Method ParallelScanAs

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

ParallelScanAs<TDocument>(ParallelScanArgs<TDocument>)

Scans an entire collection in parallel using multiple cursors.

[Obsolete("ParallelScanAs was deprecated in server version 4.1.")]
public ReadOnlyCollection<IEnumerator<TDocument>> ParallelScanAs<TDocument>(ParallelScanArgs<TDocument> args)

Parameters

args ParallelScanArgs<TDocument>

The args.

Returns

ReadOnlyCollection<IEnumerator<TDocument>>

Multiple enumerators, one for each cursor.

Type Parameters

TDocument

The type of the document.

ParallelScanAs(Type, ParallelScanArgs)

Scans an entire collection in parallel using multiple cursors.

[Obsolete("ParallelScanAs was deprecated in server version 4.1.")]
public ReadOnlyCollection<IEnumerator> ParallelScanAs(Type documentType, ParallelScanArgs args)

Parameters

documentType Type

Type of the document.

args ParallelScanArgs

The args.

Returns

ReadOnlyCollection<IEnumerator>

Multiple enumerators, one for each cursor.