Table of Contents

Constructor BulkWriteReplaceOneModel

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

BulkWriteReplaceOneModel(string, FilterDefinition<TDocument>, TDocument, Collation, BsonValue, bool)

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

public BulkWriteReplaceOneModel(string collectionNamespace, FilterDefinition<TDocument> filter, TDocument replacement, Collation collation = null, BsonValue hint = null, bool isUpsert = false)

Parameters

collectionNamespace string

Collection on which the operation should be performed.

filter FilterDefinition<TDocument>

The filter to apply.

replacement TDocument

Update definition.

collation Collation

Specifies a collation.

hint BsonValue

The index to use.

isUpsert bool

A value indicating whether to insert the document if it doesn't already exist.

BulkWriteReplaceOneModel(CollectionNamespace, FilterDefinition<TDocument>, TDocument, Collation, BsonValue, bool)

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

public BulkWriteReplaceOneModel(CollectionNamespace collectionNamespace, FilterDefinition<TDocument> filter, TDocument replacement, Collation collation = null, BsonValue hint = null, bool isUpsert = false)

Parameters

collectionNamespace CollectionNamespace

Collection on which the operation should be performed.

filter FilterDefinition<TDocument>

The filter to apply.

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