Constructor BulkWriteUpdateOneModel
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
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.
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
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.
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
stringCollection 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
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.
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
CollectionNamespaceCollection 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
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.