Table of Contents

Constructor FindOneAndReplaceOperation

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

FindOneAndReplaceOperation(CollectionNamespace, BsonDocument, BsonDocument, IBsonSerializer<TResult>, MessageEncoderSettings)

Initializes a new instance of the FindOneAndReplaceOperation<TResult> class.

public FindOneAndReplaceOperation(CollectionNamespace collectionNamespace, BsonDocument filter, BsonDocument replacement, IBsonSerializer<TResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)

Parameters

collectionNamespace CollectionNamespace

The collection namespace.

filter BsonDocument

The filter.

replacement BsonDocument

The replacement.

resultSerializer IBsonSerializer<TResult>

The result serializer.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.