HtmlDocument.DetachEventHandler Method (String, EventHandler)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes an event handler from a named event on the HTML DOM.

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

public void DetachEventHandler(
	string eventName,
	EventHandler eventHandler
)

Parameters

eventName
Type: System.String

The name of the event you want to cease handling.

eventHandler
Type: System.EventHandler

The managed code that handles the event.

.NET Framework
Available since 2.0
Return to top
Show: