Method PushAll
PushAll(string, BsonArray)
Adds a list of values to the end of the named array element (see $pushAll).
public static UpdateBuilder PushAll(string name, BsonArray values)
Parameters
name
stringThe name of the array element.
values
BsonArrayThe values to add to the end of the array.
Returns
- UpdateBuilder
The builder (so method calls can be chained).
PushAll(string, IEnumerable<BsonValue>)
Adds a list of values to the end of the named array element (see $pushAll).
public static UpdateBuilder PushAll(string name, IEnumerable<BsonValue> values)
Parameters
name
stringThe 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).
PushAll(string, params BsonValue[])
Adds a list of values to the end of the named array element (see $pushAll).
public static UpdateBuilder PushAll(string name, params BsonValue[] values)
Parameters
name
stringThe 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).