Method Sample

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Sample(long)

Creates a $sample stage.

public static PipelineStageDefinition<TInput, TInput> Sample<TInput>(long size)

Parameters

size long

The size.

Returns

PipelineStageDefinition<TInput, TInput>

The stage.

Type Parameters

TInput

The type of the input documents.