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.

返回

如果 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)

适用于

另请参阅