Delegate.CombineImpl Method

May 11, 2014

Concatenates the invocation lists of the specified delegate and the current delegate.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

protected virtual Delegate CombineImpl(
	Delegate d
)

Parameters

d
Type: System.Delegate
The delegate whose invocation list is to be combined with the invocation list of the current delegate.

Return Value

Type: System.Delegate
A new delegate with an invocation list that concatenates the invocation list of the current delegate and the invocation list of d, or the current delegate if d is null.

ExceptionCondition
MulticastNotSupportedException

In all cases.

MethodAccessException

Application code attempts to access this member late-bound, for example, by using the Type.InvokeMember method.

The current implementation throws a MulticastNotSupportedException in all cases. This does not matter because all delegate types in the common language runtime (CLR) are derived from MulticastDelegate, and therefore they are combined by using the MulticastDelegate.CombineImpl method, which overrides this protected base class method. You cannot derive a delegate type directly from Delegate, so this protected method is never called.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft