Table of Contents

Method SetDocumentId

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

SetDocumentId(object, object)

Sets the document Id.

public void SetDocumentId(object document, object id)

Parameters

document object

The document.

id object

The Id.