Table of Contents

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 CollectionNamespace

The collection namespace.

filter BsonDocument

The filter.

update BsonValue

The update.

resultSerializer IBsonSerializer<TResult>

The result serializer.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.