Table of Contents

Method AddToSetEachWrapped

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

AddToSetEachWrapped<T>(string, IEnumerable<T>)

Adds a list of wrapped values to a named array element adding each value only if it not already in the array (see $addToSet and $each).

public UpdateBuilder AddToSetEachWrapped<T>(string name, IEnumerable<T> values)

Parameters

name string

The name of the array element.

values IEnumerable<T>

The wrapped values to add to the set.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Type Parameters

T

The type of wrapped values.

AddToSetEachWrapped<T>(string, params T[])

Adds a list of wrapped values to a named array element adding each value only if it not already in the array (see $addToSet and $each).

public UpdateBuilder AddToSetEachWrapped<T>(string name, params T[] values)

Parameters

name string

The name of the array element.

values T[]

The wrapped values to add to the set.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Type Parameters

T

The type of wrapped values.