Table of Contents

Method PushEachWrapped

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

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

Adds a list of values to the end of the named array element (see $push and $each).

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

Parameters

name string

The name of the array element.

values IEnumerable<T>

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Type Parameters

T

The type of wrapped value.

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

Adds a list of values to the end of the named array element (see $push and $each).

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

Parameters

name string

The name of the array element.

values T[]

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Type Parameters

T

The type of wrapped value.

PushEachWrapped<T>(string, PushEachOptions, IEnumerable<T>)

Adds a list of values to the end of the named array element (see $push and $each).

public static UpdateBuilder PushEachWrapped<T>(string name, PushEachOptions options, IEnumerable<T> values)

Parameters

name string

The name of the array element.

options PushEachOptions

The options.

values IEnumerable<T>

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Type Parameters

T

The type of wrapped value.

PushEachWrapped<T>(string, PushEachOptions, params T[])

Adds a list of values to the end of the named array element (see $push and $each).

public static UpdateBuilder PushEachWrapped<T>(string name, PushEachOptions options, params T[] values)

Parameters

name string

The name of the array element.

options PushEachOptions

The options.

values T[]

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Type Parameters

T

The type of wrapped value.