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
CollectionNamespaceThe collection namespace.
filter
BsonDocumentThe filter.
replacement
BsonDocumentThe replacement.
resultSerializer
IBsonSerializer<TResult>The result serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.