This documentation is archived and is not being maintained.

Unit Inequality Operator

Compares two Unit objects to determine whether they are not equal.

[Visual Basic]
returnValue = Unit.op_Inequality(left, right)
[C#]
public static bool operator !=(
 Unit left,
 Unit right
);
[C++]
public: static bool op_Inequality(
 Unit left,
 Unit right
);
[JScript]
returnValue = left != right;

[Visual Basic] In Visual Basic, you can use the operators defined by a type, but you cannot define your own. You can use the Equals method instead of the Unit inequality operator.

[JScript] In JScript, you can use the operators defined by a type, but you cannot define your own.

Arguments [Visual Basic, JScript]

left
The Unit on the left side of the operator.
right
The Unit on the right side of the operator.

Parameters [C#, C++]

left
The Unit on the left side of the operator.
right
The Unit on the right side of the operator.

Return Value

true if the Unit objects are not equal; otherwise, false.

Remarks

Use this operator to compare two Unit objects for inequality. For the objects to not be equal, they must have different values for the Type property or the Value property.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Unit Structure | Unit Members | System.Web.UI.WebControls Namespace

Show: