Click or drag to resize

TopologyVersion Class

Represents a topology description.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.Core.ServersTopologyVersion

Namespace:  MongoDB.Driver.Core.Servers
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
public sealed class TopologyVersion : IEquatable<TopologyVersion>, 
	IConvertibleToBsonDocument

The TopologyVersion type exposes the following members.

Constructors
  NameDescription
Public methodTopologyVersion
Initializes a new instance of the TopologyVersion class.
Top
Properties
  NameDescription
Public propertyCounter
Gets the process identifier.
Public propertyProcessId
Gets the process identifier.
Top
Methods
  NameDescription
Public methodStatic memberCompareTopologyVersion
Compares a local TopologyVersion with a server's TopologyVersion and indicates whether the local TopologyVersion is staler, fresher, or equal to the server's TopologyVersion. Per the SDAM specification, if the ProcessIds are not equal, this method assumes that y is more recent. This means that this method does not exhibit the reversal properties of inequalities i.e. a "<" b does not imply b ">" a.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(TopologyVersion)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberFromBsonDocument
Attempts to create a TopologyVersion from the supplied BsonDocument.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsFresherThan
Gets whether or not x is fresher than y. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsFresherThan(b) (a "<" b) does not imply !b.IsFresherThan(a) (b ">" a) See for more information. In the case that this.Equals(y), y will be considered to be fresher.
Public methodStatic memberIsFresherThanOrEqualTo
Gets whether or not x is fresher than or Equal to y. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsFresherThan(b) (a "<" b) does not imply !b.IsFresherThan(a) (b ">" a) See for more information. In the case that this.Equals(y), y will be considered to be fresher.
Public methodStatic memberIsStalerThan
Gets whether or not x is staler than or Equal to y. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsStalerThan(b) (a "<" b) does not imply !b.IsStalerThan(a) (b ">" a). See for more information. In the case that this == y, y will be considered to be fresher.
Public methodStatic memberIsStalerThanOrEqualTo
Gets whether or not x is staler than or Equal to y. Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. a.IsStalerThan(b) (a "<" b) does not imply !b.IsStalerThan(a) (b ">" a). See for more information. In the case that this == y, y will be considered to be fresher.
Public methodToBsonDocument
Converts this object to a BsonDocument.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Remarks
Comparing topology descriptions freshness does not exhibit the reversal property of inequalities e.g. IsStalerThan(a, b) (a "<" b) does not imply !IsStalerThan(b, a) (b ">" a) See for more information.
See Also