Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RemoveImpl Method

Delegate.RemoveImpl Method

Removes the invocation list of a delegate from the invocation list of another delegate.

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

protected virtual Delegate RemoveImpl(
	Delegate d
)

Parameters

d
Type: System.Delegate

The delegate that supplies the invocation list to remove from the invocation list of the current delegate.

Return Value

Type: System.Delegate
A new delegate with an invocation list formed by taking the invocation list of the current delegate and removing the invocation list of value, if the invocation list of value is found within the current delegate's invocation list. Returns the current delegate if value is null or if the invocation list of value is not found within the current delegate's invocation list. Returns null if the invocation list of value is equal to the current delegate's invocation list.

ExceptionCondition
MemberAccessException

The caller does not have access to the method represented by the delegate (for example, if the method is private).

If the invocation list of value matches a contiguous set of elements in the current delegate's invocation list, then the invocation list of value is said to occur within the current delegate's invocation list. If the invocation list of value occurs more than once in the current delegate's invocation list, the last occurrence is removed.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Show:
© 2015 Microsoft