Table of Contents

Method AddToSetWrapped

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

AddToSetWrapped<T>(string, T)

Adds a wrapped value to a named array element if the value is not already in the array (see $addToSet).

public UpdateBuilder AddToSetWrapped<T>(string name, T value)

Parameters

name string

The name of the array element.

value T

The wrapped value to add to the set.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Type Parameters

T

The type of wrapped value.