Constructor BulkWriteUpdateManyModel
BulkWriteUpdateManyModel(string, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, Collation, BsonValue, bool, IEnumerable<ArrayFilterDefinition>)
Initializes a new instance of the BulkWriteUpdateManyModel<TDocument> class.
public BulkWriteUpdateManyModel(string collectionNamespace, FilterDefinition<TDocument> filter, UpdateDefinition<TDocument> update, Collation collation = null, BsonValue hint = null, bool isUpsert = false, IEnumerable<ArrayFilterDefinition> arrayFilters = null)
Parameters
collectionNamespace
stringCollection on which the operation should be performed.
filter
FilterDefinition<TDocument>The filter to apply.
update
UpdateDefinition<TDocument>Update definition.
collation
CollationSpecifies a collation.
hint
BsonValueThe index to use.
isUpsert
boolIndicating whether to insert the document if it doesn't already exist.
arrayFilters
IEnumerable<ArrayFilterDefinition>A set of filters specifying to which array elements an update should apply.
BulkWriteUpdateManyModel(CollectionNamespace, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, Collation, BsonValue, bool, IEnumerable<ArrayFilterDefinition>)
Initializes a new instance of the BulkWriteUpdateManyModel<TDocument> class.
public BulkWriteUpdateManyModel(CollectionNamespace collectionNamespace, FilterDefinition<TDocument> filter, UpdateDefinition<TDocument> update, Collation collation = null, BsonValue hint = null, bool isUpsert = false, IEnumerable<ArrayFilterDefinition> arrayFilters = null)
Parameters
collectionNamespace
CollectionNamespaceCollection on which the operation should be performed.
filter
FilterDefinition<TDocument>The filter to apply.
update
UpdateDefinition<TDocument>Update definition.
collation
CollationSpecifies a collation.
hint
BsonValueThe index to use.
isUpsert
boolIndicating whether to insert the document if it doesn't already exist.
arrayFilters
IEnumerable<ArrayFilterDefinition>A set of filters specifying to which array elements an update should apply.