Method PushEach
PushEach(string, BsonArray)
Adds a list of values to the end of the named array element (see $push and $each).
public static UpdateBuilder PushEach(string name, BsonArray values)
Parameters
namestringThe name of the array element.
valuesBsonArrayThe 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 static UpdateBuilder PushEach(string name, IEnumerable<BsonValue> values)
Parameters
namestringThe name of the array element.
valuesIEnumerable<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 static UpdateBuilder PushEach(string name, params BsonValue[] values)
Parameters
namestringThe name of the array element.
valuesBsonValue[]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 static UpdateBuilder PushEach(string name, PushEachOptions options, BsonArray values)
Parameters
namestringThe name of the array element.
optionsPushEachOptionsThe options.
valuesBsonArrayThe 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 static UpdateBuilder PushEach(string name, PushEachOptions options, IEnumerable<BsonValue> values)
Parameters
namestringThe name of the array element.
optionsPushEachOptionsThe options.
valuesIEnumerable<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 static UpdateBuilder PushEach(string name, PushEachOptions options, params BsonValue[] values)
Parameters
namestringThe name of the array element.
optionsPushEachOptionsThe options.
valuesBsonValue[]The values to add to the end of the array.
Returns
- UpdateBuilder
The builder (so method calls can be chained).