This documentation is archived and is not being maintained.

Delegate.CombineImpl Method

Concatenates the invocation lists of the specified multicast (combinable) delegate and the current multicast (combinable) delegate.

[Visual Basic]
Protected Overridable Function CombineImpl( _
   ByVal d As Delegate _
) As Delegate
[C#]
protected virtual Delegate CombineImpl(
 Delegate d
);
[C++]
protected: virtual Delegate* CombineImpl(
 Delegate* d
);
[JScript]
protected function CombineImpl(
   d : Delegate
) : Delegate;

Parameters

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

Return Value

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 a null reference (Nothing in Visual Basic).

Exceptions

Exception Type Condition
MulticastNotSupportedException Always thrown.

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

.NET Framework Security: 

See Also

Delegate Class | Delegate Members | System Namespace | Combine

Show: