NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Delegate Inequality Operator

Determines if the specified Delegate objects are not equal.

[C#]
public static bool operator !=(
   Delegate d1,
   Delegate d2
);
[C++]
public: static bool operator op_Inequality(
   Delegate* d1,
   Delegate* d2
);
[JScript]
returnValue = d1 ! = d2;

[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.

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

Arguments [JScript]

d1
The first Delegate to compare.
d2
The second Delegate to compare.

Parameters [C#, C++]

d1
The first Delegate to compare.
d2
The second Delegate to compare.

Return Value [C#, C++, JScript]

true if d1 is not equal to d2; otherwise, false.

Remarks [C#, C++, JScript]

Two delegates are considered not equal if they have different methods, or different targets or different invocation lists.

The methods and targets are compared for equality as follows:

Two invocation lists are considered not equal if they have different sizes, or if they are ordered differently, or at least one element from one list represents a method or target that is different from that represented by its corresponding element in the other list.

See Also

Delegate Class | Delegate Members | System Namespace | Equals