Table of Contents

Method Sample

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Sample<TInput>(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.