Table of Contents

Constructor BulkWriteUpdateManyModel

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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 string

Collection on which the operation should be performed.

filter FilterDefinition<TDocument>

The filter to apply.

update UpdateDefinition<TDocument>

Update definition.

collation Collation

Specifies a collation.

hint BsonValue

The index to use.

isUpsert bool

Indicating 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 CollectionNamespace

Collection on which the operation should be performed.

filter FilterDefinition<TDocument>

The filter to apply.

update UpdateDefinition<TDocument>

Update definition.

collation Collation

Specifies a collation.

hint BsonValue

The index to use.

isUpsert bool

Indicating 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.