Click or drag to resize

PipelineStageDefinitionBuilderSetTInput, TFields Method (ExpressionFuncTInput, TFields)

Creates a $set stage.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public static PipelineStageDefinition<TInput, TInput> Set<TInput, TFields>(
	Expression<Func<TInput, TFields>> fields
)

Parameters

fields
Type: System.Linq.ExpressionsExpressionFuncTInput, TFields
The fields to set.

Type Parameters

TInput
The type of the input documents.
TFields
The type of object specifying the fields to set.

Return Value

Type: PipelineStageDefinitionTInput, TInput
The stage.
See Also