Click or drag to resize
UpdateDefinitionBuilder<TDocument>.PushEach<TItem> Method (FieldDefinition<TDocument>, IEnumerable<TItem>, Nullable<Int32>, Nullable<Int32>, SortDefinition<TItem>)
Creates a push operator.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.3.0
Syntax
public UpdateDefinition<TDocument> PushEach<TItem>(
	FieldDefinition<TDocument> field,
	IEnumerable<TItem> values,
	Nullable<int> slice = null,
	Nullable<int> position = null,
	SortDefinition<TItem> sort = null
)

Parameters

field
Type: MongoDB.Driver.FieldDefinition<TDocument>
The field.
values
Type: System.Collections.Generic.IEnumerable<TItem>
The values.
slice (Optional)
Type: System.Nullable<Int32>
The slice.
position (Optional)
Type: System.Nullable<Int32>
The position.
sort (Optional)
Type: MongoDB.Driver.SortDefinition<TItem>
The sort.

Type Parameters

TItem
The type of the item.

Return Value

Type: UpdateDefinition<TDocument>
A push operator.
See Also