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;
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).
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. |
The invocation list can contain duplicate entries; that is, entries that refer to the same method on the same object.
Delegate Class | Delegate Members | System Namespace | Delegate.Combine Overload List | MulticastDelegate | CombineImpl