Class MongoUpdateOptions
Represents the options to use for an Update operation.
public class MongoUpdateOptions
- Inheritance
-
MongoUpdateOptions
- Inherited Members
- Extension Methods
Constructors
MongoUpdateOptions()
Initializes a new instance of the MongoUpdateOptions class.
public MongoUpdateOptions()
MongoUpdateOptions(MongoCollection)
Initializes a new instance of the MongoUpdateOptions class.
[Obsolete("Options constructors which take a MongoCollection parameter are obsolete and will be removed in a future release of the MongoDB CSharp Driver. Please use a constructor which does not take a MongoCollection parameter.")]
public MongoUpdateOptions(MongoCollection collection)
Parameters
collection
MongoCollectionThe collection from which to get default settings for the options.
Properties
BypassDocumentValidation
Gets or sets a value indicating whether to bypass document validation.
public bool? BypassDocumentValidation { get; set; }
Property Value
- bool?
A value indicating whether to bypass document validation.
Collation
Gets or sets the collation.
public Collation Collation { get; set; }
Property Value
- Collation
The collation.
Flags
Gets or sets the update flags.
public UpdateFlags Flags { get; set; }
Property Value
WriteConcern
Gets or sets the WriteConcern to use for the Update.
public WriteConcern WriteConcern { get; set; }