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 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 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 UpdateBuilder PushEachWrapped<T>(string name, PushEachOptions args, IEnumerable<T> values)

Parameters

name string

The name of the array element.

args PushEachOptions

The args.

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 UpdateBuilder PushEachWrapped<T>(string name, PushEachOptions args, params T[] values)

Parameters

name string

The name of the array element.

args PushEachOptions

The args.

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.