Table of Contents

Constructor ReplaceOneModel

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

ReplaceOneModel(FilterDefinition<TDocument>, TDocument)

Initializes a new instance of the ReplaceOneModel<TDocument> class.

public ReplaceOneModel(FilterDefinition<TDocument> filter, TDocument replacement)

Parameters

filter FilterDefinition<TDocument>

The filter.

replacement TDocument

The replacement.