Table of Contents

Method PushEach

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

PushEach(string, BsonArray)

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

public UpdateBuilder PushEach(string name, BsonArray values)

Parameters

name string

The name of the array element.

values BsonArray

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

PushEach(string, IEnumerable<BsonValue>)

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

public UpdateBuilder PushEach(string name, IEnumerable<BsonValue> values)

Parameters

name string

The name of the array element.

values IEnumerable<BsonValue>

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

PushEach(string, params BsonValue[])

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

public UpdateBuilder PushEach(string name, params BsonValue[] values)

Parameters

name string

The name of the array element.

values BsonValue[]

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

PushEach(string, PushEachOptions, BsonArray)

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

public UpdateBuilder PushEach(string name, PushEachOptions options, BsonArray values)

Parameters

name string

The name of the array element.

options PushEachOptions

The options.

values BsonArray

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

PushEach(string, PushEachOptions, IEnumerable<BsonValue>)

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

public UpdateBuilder PushEach(string name, PushEachOptions options, IEnumerable<BsonValue> values)

Parameters

name string

The name of the array element.

options PushEachOptions

The options.

values IEnumerable<BsonValue>

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).

PushEach(string, PushEachOptions, params BsonValue[])

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

public UpdateBuilder PushEach(string name, PushEachOptions options, params BsonValue[] values)

Parameters

name string

The name of the array element.

options PushEachOptions

The options.

values BsonValue[]

The values to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).