Class FindOneAndReplaceOptions<TDocument, TProjection>
Options for a findAndModify command to replace an object.
public class FindOneAndReplaceOptions<TDocument, TProjection>
Type Parameters
TDocument
The type of the document.
TProjection
The type of the projection (same as TDocument if there is no projection).
- Inheritance
-
FindOneAndReplaceOptions<TDocument, TProjection>
- Derived
- Inherited Members
Constructors
- FindOneAndReplaceOptions()
Initializes a new instance of the FindOneAndReplaceOptions<TDocument, TProjection> class.
Properties
- BypassDocumentValidation
Gets or sets a value indicating whether to bypass document validation.
- Collation
Gets or sets the collation.
- Comment
Gets or sets the comment.
- Hint
Gets or sets the hint.
- IsUpsert
Gets or sets a value indicating whether to insert the document if it doesn't already exist.
- Let
Gets or sets the let document.
- MaxTime
Gets or sets the maximum time.
- Projection
Gets or sets the projection.
- ReturnDocument
Gets or sets which version of the document to return.
- Sort
Gets or sets the sort.