System.Version.op_Inequality Method

Determines whether two specified Version objects are not equal.

Syntax

public static bool operator!= (Version v1, Version v2)

Parameters

v1
The first Version object.
v2
The second Version object.

Returns

true if v1 does not equal v2; otherwise, false.

Remarks

The parts of the version number are compared independently starting with the Version.Major property and then the Version.Minor, Version.Build, and Version.Revision properties, in order. This method returns as soon as one of the properties is determined not to be equal.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0