Class MongoInsertOptions
Represents the options to use for an Insert or InsertBatch operation.
public class MongoInsertOptions
- Inheritance
-
MongoInsertOptions
- Inherited Members
- Extension Methods
Constructors
MongoInsertOptions()
Initializes a new instance of the MongoInsertOptions class.
public MongoInsertOptions()
MongoInsertOptions(MongoCollection)
Initializes a new instance of the MongoInsertOptions 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 MongoInsertOptions(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.
Flags
Gets or sets the insert flags.
public InsertFlags Flags { get; set; }
Property Value
WriteConcern
Gets or sets the WriteConcern to use for the Insert.
public WriteConcern WriteConcern { get; set; }