Sets the document Id.

Namespace: MongoDB.Bson
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 1.0.0.4098

Syntax

C#
public void SetDocumentId(
	Object id
)
Visual Basic
Public Sub SetDocumentId ( _
	id As Object _
)
Visual C++
public:
virtual void SetDocumentId(
	Object^ id
) sealed

Parameters

id
Type: System..::..Object
The value of the Id.

Implements

IBsonSerializable..::..SetDocumentId(Object)

See Also