DelegateExtensionsRemove Method
Removes the last occurrence of the invocation list of the source Delegate
from the invocation list of another Delegate.
Namespace: DevCase.Extensions.DelegateExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Delegate Remove(
this Delegate source,
Delegate target
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function Remove (
source As Delegate,
target As Delegate
) As Delegate
Dim source As [Delegate]
Dim target As [Delegate]
Dim returnValue As [Delegate]
returnValue = source.Remove(target)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Delegate^ Remove(
Delegate^ source,
Delegate^ target
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member Remove :
source : Delegate *
target : Delegate -> Delegate
No code example is currently available or this language may not be supported.
- source Delegate
-
The source Delegate from which to remove the invocation list of.
- target Delegate
-
The Delegate that supplies the invocation list to remove from the invocation list of.
Delegate
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
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.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Delegate. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).