Delegate.CombineImpl(Delegate) 方法

定义

将指定多路广播(可组合)委托和当前多路广播(可组合)委托的调用列表连接起来。Concatenates the invocation lists of the specified multicast (combinable) delegate and the current multicast (combinable) delegate.

protected:
 virtual Delegate ^ CombineImpl(Delegate ^ d);
protected virtual Delegate CombineImpl (Delegate? d);
protected virtual Delegate CombineImpl (Delegate d);
abstract member CombineImpl : Delegate -> Delegate
override this.CombineImpl : Delegate -> Delegate
Protected Overridable Function CombineImpl (d As Delegate) As Delegate

参数

d
Delegate

多路广播(可组合)委托,其调用列表要追加到当前多路广播(可组合)委托的调用列表的结尾。The multicast (combinable) delegate whose invocation list to append to the end of the invocation list of the current multicast (combinable) delegate.

返回

Delegate

新的多路广播(可组合)委托,其调用列表将当前多路广播(可组合)委托的调用列表和 d 的调用列表连接在一起;或者如果 dnull,则返回当前多路广播(可组合)委托。A new multicast (combinable) delegate with an invocation list that concatenates the invocation list of the current multicast (combinable) delegate and the invocation list of d, or the current multicast (combinable) delegate if d is null.

例外

始终引发。Always thrown.

注解

此方法仅适用于当前委托 (可组合) 的多播。This method applies only if the current delegate is multicast (combinable).

当前实现只引发一个 MulticastNotSupportedExceptionThe current implementation simply throws a MulticastNotSupportedException.

调用列表可以包含重复项;也就是说,引用相同对象上的同一方法的条目。The invocation list can contain duplicate entries; that is, entries that refer to the same method on the same object.

适用于

另请参阅