Removes the last occurrence of the invocation list of a delegate from the invocation list of another delegate.
Public Shared Function Remove ( _ source As Delegate, _ value As Delegate _ ) As Delegate
Dim source As [Delegate] Dim value As [Delegate] Dim returnValue As [Delegate] returnValue = Delegate.Remove(source, _ value)
public static Delegate Remove( Delegate source, Delegate value )
public: static Delegate^ Remove( Delegate^ source, Delegate^ value )
public static function Remove( source : Delegate, value : Delegate ) : Delegate
The caller does not have access to the method represented by the delegate (for example, if the method is private).
The delegate types do not match.
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.
Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows CE Platform Note:
If the delegate types do not match, the .NET Compact Framework does not throw a ArgumentException but the operation fails.
when invoked late-bound through mechanisms such as Type..::.InvokeMember. Associated enumeration: ReflectionPermissionFlag..::.MemberAccess
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune