Editare

Partajați prin


Delegate.CombineImpl(Delegate) Method

Definition

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

Parameters

d
Delegate

The multicast (combinable) delegate whose invocation list to append to the end of the invocation list of the current multicast (combinable) delegate.

Returns

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.

Exceptions

Remarks

This method applies only if the current delegate is multicast (combinable).

The 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.

Applies to

See also