Click or drag to resize

UpdateDefinitionBuilderTDocumentSetTField Method (ExpressionFuncTDocument, TField, TField)

Creates a set operator.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public UpdateDefinition<TDocument> Set<TField>(
	Expression<Func<TDocument, TField>> field,
	TField value
)

Parameters

field
Type: System.Linq.ExpressionsExpressionFuncTDocument, TField
The field.
value
Type: TField
The value.

Type Parameters

TField
The type of the field.

Return Value

Type: UpdateDefinitionTDocument
A set operator.
See Also