Table of Contents

Method FromBsonDocument

Namespace
MongoDB.Driver.Core.Servers
Assembly
MongoDB.Driver.Core.dll

FromBsonDocument(BsonDocument)

Attempts to create a TopologyVersion from the supplied BsonDocument.

public static TopologyVersion FromBsonDocument(BsonDocument document)

Parameters

document BsonDocument

The document. Should contain an ObjectId named "processId" and a BsonInt64 named "counter".

Returns

TopologyVersion

A TopologyVersion if one could be constructed from the supplied document and null otherwise.