HtmlObject.DetachEvent Method (String, EventHandler(Of HtmlEventArgs))

Silverlight

Detaches the specified .NET Framework event handler (EventHandler(Of TEventArgs)) from the specified event on the current Document Object Model (DOM) object.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

'Declaration
Public Sub DetachEvent ( _
	eventName As String, _
	handler As EventHandler(Of HtmlEventArgs) _
)

Parameters

eventName
Type: System.String
A named event on the DOM object.
handler
Type: System.EventHandler(Of HtmlEventArgs)
The method that handles the event.

ExceptionCondition
ArgumentException

eventName is an empty string.

ArgumentNullException

eventName is Nothing.

-or-

handler is Nothing.

If the event that is specified in eventName does not exist or if there is no registration for the eventName with the specified handler, no action is taken.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: