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!

MulticastDelegate Inequality Operator

Determines whether two MulticastDelegate objects are not equal.

[C#]
public static new bool operator !=(
   MulticastDelegate d1,
   MulticastDelegate d2
);
[C++]
public: static new bool operator op_Inequality(
   MulticastDelegate* d1,
   MulticastDelegate* 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 left operand.
d2
The right operand.

Parameters [C#, C++]

d1
The left operand.
d2
The right operand.

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

True if d1 and d2 do not have the same invocation lists; otherwise false.

Remarks [C#, C++, JScript]

Two delegates, whether single- or multi-cast, are equal if they have the same invocation lists. Two invocation lists are considered identical if they have the same order, and the corresponding elements from the two lists represent the same method and target.

The methods and targets are compared for equality in the following way. If the two methods being compared are static, they must be the same method on the same class, in which case the methods and targets are considered equal. If the two methods being compared are instance methods, they must be the same method on the same object, in which case the methods and targets are considered equal. Otherwise the methods and targets are considered to be unequal.

See Also

MulticastDelegate Class | MulticastDelegate Members | System Namespace