Cuemon .NET Framework
RemoveEvent<TEventArgs> Method

The type of the event data generated by the event.
The method that will handle the event.
The backing field reference for the handler.
A generic helper method for removing an event from a custom backing field backingFieldHandler.
Syntax
'Declaration
 
Public Shared Sub RemoveEvent(Of TEventArgs As EventArgs)( _
   ByVal handler As EventHandler(Of TEventArgs), _
   ByRef backingFieldHandler As EventHandler(Of TEventArgs) _
) 
public static void RemoveEvent<TEventArgs>( 
   EventHandler<TEventArgs> handler,
   ref EventHandler<TEventArgs> backingFieldHandler
)
where TEventArgs: EventArgs

Parameters

handler
The method that will handle the event.
backingFieldHandler
The backing field reference for the handler.

Type Parameters

TEventArgs
The type of the event data generated by the event.
Remarks
The methodology is the same as in .NET 4.0.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EventUtility Class
EventUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback