Class FindOneAndUpdateOperation<TResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a find one and update operation.
public class FindOneAndUpdateOperation<TResult> : FindAndModifyOperationBase<TResult>, IWriteOperation<TResult>, IRetryableWriteOperation<TResult>, IExecutableInRetryableWriteContext<TResult>
Type Parameters
TResult
The type of the result.
- Inheritance
-
FindAndModifyOperationBase<TResult>FindOneAndUpdateOperation<TResult>
- Implements
-
IWriteOperation<TResult>IRetryableWriteOperation<TResult>IExecutableInRetryableWriteContext<TResult>
- Inherited Members
- Extension Methods
Constructors
- FindOneAndUpdateOperation(CollectionNamespace, BsonDocument, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the FindOneAndUpdateOperation<TResult> class.
Properties
- ArrayFilters
Gets or sets the array filters.
- BypassDocumentValidation
Gets or sets a value indicating whether to bypass document validation.
- Filter
Gets the filter.
- Hint
Gets or sets the hint.
- IsUpsert
Gets a value indicating whether a document should be inserted if no matching document is found.
- Let
Gets or sets the let document.
- MaxTime
Gets or sets the maximum time the server should spend on this operation.
- Projection
Gets or sets the projection.
- ReturnDocument
Gets or sets which version of the modified document to return.
- Sort
Gets or sets the sort specification.
- Update
Gets or sets the update specification.
Methods
- GetCommandValidator()
Gets the command validator.