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.Combine (Delegate, Delegate)

Combines the invocation lists of two multicast Delegate instances.

[Visual Basic]
Overloads Public Shared Function Combine( _
   ByVal a As Delegate, _
   ByVal b As Delegate _
) As Delegate
[C#]
public static Delegate Combine(
   Delegate a,
   Delegate b
);
[C++]
public: static Delegate* Combine(
   Delegate* a,
   Delegate* b
);
[JScript]
public static function Combine(
   a : Delegate,
   b : Delegate
) : Delegate;

Parameters

a
The multicast Delegate whose invocation list comes first.
b
The multicast Delegate whose invocation list comes last.

Return Value

A new multicast Delegate with an invocation list that concatenates the invocation lists of a and b in that order.

a null reference (in Visual Basic Nothing) if both a and b are a null reference (Nothing).

Exceptions

Exception Type Condition
ArgumentException Both a and b are not a null reference (Nothing) and a and b are not instances of the same class.
MulticastNotSupportedException Both a and b are not a null reference (Nothing) and are not derived from MulticastDelegate.

Remarks

The invocation list can contain duplicate entries; that is, entries that refer to the same method on the same object.

See Also

Delegate Class | Delegate Members | System Namespace | Delegate.Combine Overload List | MulticastDelegate | CombineImpl