Table of Contents

Method Replace

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

Replace(TDocument)

Replaces the entire document with a new document (the _id must remain the same).

public static IMongoUpdate Replace(TDocument document)

Parameters

document TDocument

The replacement document.

Returns

IMongoUpdate

An UpdateWrapper.