Version.Inequality(Version, Version) 運算子

定義

判斷指定的兩個 Version 物件是否相等。Determines whether two specified Version objects are not equal.

public:
 static bool operator !=(Version ^ v1, Version ^ v2);
public static bool operator != (Version v1, Version v2);
static member op_Inequality : 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 does not equal v2; otherwise, false.

備註

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

適用於

另請參閱