A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.delegate.remove below:

Delegate.Remove(Delegate, Delegate) Method (System) | Microsoft Learn

Delegate.Remove(Delegate, Delegate) Method Definition

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

public:
 static Delegate ^ Remove(Delegate ^ source, Delegate ^ value);
public static Delegate Remove(Delegate source, Delegate value);
public static Delegate? Remove(Delegate? source, Delegate? value);
static member Remove : Delegate * Delegate -> Delegate
Public Shared Function Remove (source As Delegate, value As Delegate) As Delegate
Parameters
source
Delegate

The delegate from which to remove the invocation list of value.

value
Delegate

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

Returns

A new delegate with an invocation list formed by taking the invocation list of source and removing the last occurrence of the invocation list of value, if the invocation list of value is found within the invocation list of source. Returns source if value is null or if the invocation list of value is not found within the invocation list of source. Returns a null reference if the invocation list of value is equal to the invocation list of source or if source is a null reference.

Exceptions

The delegate types do not match.

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

Remarks

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

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?

Additional resources


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4