Click or drag to resize

TopologyVersion Methods

The TopologyVersion type exposes the following members.

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
See Also