Constructor FindOneAndUpdateOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
FindOneAndUpdateOperation(CollectionNamespace, BsonDocument, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the FindOneAndUpdateOperation<TResult> class.
public FindOneAndUpdateOperation(CollectionNamespace collectionNamespace, BsonDocument filter, BsonValue update, IBsonSerializer<TResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)
Parameters
collectionNamespace
CollectionNamespaceThe collection namespace.
filter
BsonDocumentThe filter.
update
BsonValueThe update.
resultSerializer
IBsonSerializer<TResult>The result serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.