MulticastDelegate::RemoveImpl Method (Delegate^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes an element from the invocation list of this MulticastDelegate that is equal to the specified delegate.

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

protected:
virtual Delegate^ RemoveImpl(
	Delegate^ value
) override sealed

Parameters

value
Type: System::Delegate^

The delegate to search for in the invocation list.

Return Value

Type: System::Delegate^

If value is found in the invocation list for this instance, then a new Delegate without value in its invocation list; otherwise, this instance with its original invocation list.

Exception Condition
MemberAccessException

Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

ReflectionPermission

when invoked late-bound through mechanisms such as Type::InvokeMember. Associated enumeration: ReflectionPermissionFlag::MemberAccess

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: