Click or drag to resize

TopologyVersionFromBsonDocument Method

Attempts to create a TopologyVersion from the supplied BsonDocument.

Namespace:  MongoDB.Driver.Core.Servers
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public static TopologyVersion FromBsonDocument(
	BsonDocument document
)

Parameters

document
Type: MongoDB.BsonBsonDocument
The document. Should contain an ObjectId named "processId" and a BsonInt64 named "counter".

Return Value

Type: TopologyVersion
A TopologyVersion if one could be constructed from the supplied document and null otherwise.
See Also