Table of Contents

Method Set

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

Set(string, BsonValue)

Sets the value of the named element to a new value (see $set).

public UpdateBuilder Set(string name, BsonValue value)

Parameters

name string

The name of the element to be set.

value BsonValue

The new value.

Returns

UpdateBuilder

The builder (so method calls can be chained).