Constructor BulkWriteReplaceOneModel
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
stringCollection on which the operation should be performed.
filter
FilterDefinition<TDocument>The filter to apply.
replacement
TDocumentUpdate definition.
collation
CollationSpecifies a collation.
hint
BsonValueThe index to use.
isUpsert
boolA 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
CollectionNamespaceCollection on which the operation should be performed.
filter
FilterDefinition<TDocument>The filter to apply.
replacement
TDocumentUpdate definition.
collation
CollationSpecifies a collation.
hint
BsonValueThe index to use.
isUpsert
boolIndicating whether to insert the document if it doesn't already exist.
BulkWriteReplaceOneModel(string, FilterDefinition<TDocument>, TDocument, SortDefinition<TDocument>, Collation, BsonValue, bool)
Initializes a new instance of the BulkWriteReplaceOneModel<TDocument> class.
public BulkWriteReplaceOneModel(string collectionNamespace, FilterDefinition<TDocument> filter, TDocument replacement, SortDefinition<TDocument> sort, Collation collation = null, BsonValue hint = null, bool isUpsert = false)
Parameters
collectionNamespace
stringCollection on which the operation should be performed.
filter
FilterDefinition<TDocument>The filter to apply.
replacement
TDocumentUpdate definition.
sort
SortDefinition<TDocument>The sort definition to use.
collation
CollationSpecifies a collation.
hint
BsonValueThe index to use.
isUpsert
boolA value indicating whether to insert the document if it doesn't already exist.
BulkWriteReplaceOneModel(CollectionNamespace, FilterDefinition<TDocument>, TDocument, SortDefinition<TDocument>, Collation, BsonValue, bool)
Initializes a new instance of the BulkWriteReplaceOneModel<TDocument> class.
public BulkWriteReplaceOneModel(CollectionNamespace collectionNamespace, FilterDefinition<TDocument> filter, TDocument replacement, SortDefinition<TDocument> sort, Collation collation = null, BsonValue hint = null, bool isUpsert = false)
Parameters
collectionNamespace
CollectionNamespaceCollection on which the operation should be performed.
filter
FilterDefinition<TDocument>The filter to apply.
replacement
TDocumentUpdate definition.
sort
SortDefinition<TDocument>The sort definition to use.
collation
CollationSpecifies a collation.
hint
BsonValueThe index to use.
isUpsert
boolIndicating whether to insert the document if it doesn't already exist.