다음을 통해 공유


ResolvedServicePartition.CompareVersion(ResolvedServicePartition) Method

Definition

Compares two resolved service partitions and identifies which is newer.

public int CompareVersion (System.Fabric.ResolvedServicePartition other);
member this.CompareVersion : System.Fabric.ResolvedServicePartition -> int
Public Function CompareVersion (other As ResolvedServicePartition) As Integer

Parameters

other
ResolvedServicePartition

The other resolved service partition to compare.

Returns

Returns Int32.

Exceptions

The two ResolvedServicePartition objects are from different service partitions. This can happen if the service is deleted and re-created with the same name and partitioning between two resolve calls.

Remarks

The CompareVersion(ResolvedServicePartition) method takes in a resolved service partition (RSP) argument with the parameter other to enable the user to identify which RSP is more up-to-date. A returned value of 0 indicates that the two RSPs have the same version. 1 indicates that the other RSP has an older version. -1 indicates that the other RSP has a newer version.

Applies to