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.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntaxpublic static TopologyVersion FromBsonDocument(
	BsonDocument document
)
Public Shared Function FromBsonDocument ( 
	document As BsonDocument
) As TopologyVersion
static member FromBsonDocument : 
        document : BsonDocument -> TopologyVersion 
Parameters
- document
 - Type: MongoDB.BsonBsonDocument
The document. Should contain an ObjectId named "processId" and a BsonInt64 named "counter". 
Return Value
Type: 
TopologyVersionA TopologyVersion if one could be constructed from the supplied document and null otherwise.
See Also