TopologyVersionIsFresherThan Method |
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.
Namespace:
MongoDB.Driver.Core.Servers
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax public static bool IsFresherThan(
TopologyVersion x,
TopologyVersion y
)
Public Shared Function IsFresherThan (
x As TopologyVersion,
y As TopologyVersion
) As Boolean
static member IsFresherThan :
x : TopologyVersion *
y : TopologyVersion -> bool
Parameters
- x
- Type: MongoDB.Driver.Core.ServersTopologyVersion
The first TopologyVersion. - y
- Type: MongoDB.Driver.Core.ServersTopologyVersion
The other TopologyVersion.
Return Value
Type:
Boolean
Whether or not this TopologyVersion is fresher than
y.
See Also