Table of Contents

Constructor BulkWriteUpdateOneModel

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

BulkWriteUpdateOneModel(string, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, Collation, BsonValue, bool, IEnumerable<ArrayFilterDefinition>)

Initializes a new instance of the BulkWriteUpdateOneModel<TDocument> class.

public BulkWriteUpdateOneModel(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.

BulkWriteUpdateOneModel(CollectionNamespace, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, Collation, BsonValue, bool, IEnumerable<ArrayFilterDefinition>)

Initializes a new instance of the BulkWriteUpdateOneModel<TDocument> class.

public BulkWriteUpdateOneModel(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.

BulkWriteUpdateOneModel(string, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, SortDefinition<TDocument>, Collation, BsonValue, bool, IEnumerable<ArrayFilterDefinition>)

Initializes a new instance of the BulkWriteUpdateOneModel<TDocument> class.

public BulkWriteUpdateOneModel(string collectionNamespace, FilterDefinition<TDocument> filter, UpdateDefinition<TDocument> update, SortDefinition<TDocument> sort, 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.

sort SortDefinition<TDocument>

The sort definition to use.

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.

BulkWriteUpdateOneModel(CollectionNamespace, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, SortDefinition<TDocument>, Collation, BsonValue, bool, IEnumerable<ArrayFilterDefinition>)

Initializes a new instance of the BulkWriteUpdateOneModel<TDocument> class.

public BulkWriteUpdateOneModel(CollectionNamespace collectionNamespace, FilterDefinition<TDocument> filter, UpdateDefinition<TDocument> update, SortDefinition<TDocument> sort, 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.

sort SortDefinition<TDocument>

The sort definition to use.

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.