Version.GreaterThan(Version, Version) 運算子

定義

判斷第一個指定的 Version 物件是否大於第二個指定的 Version 物件。Determines whether the first specified Version object is greater than the second specified Version object.

public:
 static bool operator >(Version ^ v1, Version ^ v2);
public static bool operator > (Version v1, Version v2);
static member ( > ) : Version * Version -> bool
Public Shared Operator > (v1 As Version, v2 As Version) As Boolean

參數

v1
Version

第一個 Version 物件。The first Version object.

v2
Version

第二個 Version 物件。The second Version object.

傳回

Boolean

如果 v1 大於 v2 則為 true,否則為 falsetrue if v1 is greater than v2; otherwise, false.

備註

這個運算子的對等方法是 Version.CompareTo(Object)The equivalent method for this operator is Version.CompareTo(Object)

適用於

另請參閱