Method FromBsonDocument

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Servers

Assembly

MongoDB.Driver.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.