Version.LessThanOrEqual(Version, Version) 運算子

定義

判斷第一個指定的 Version 物件是否小於或等於第二個 Version 物件。Determines whether the first specified Version object is less than or equal to the second 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 less than or equal to v2; otherwise, false.

例外狀況

v1nullv1 is null.

備註

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

適用於

另請參閱