HtmlObject.DetachEvent Method (String, EventHandler<HtmlEventArgs>)
Silverlight
Detaches the specified .NET Framework event handler (EventHandler<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)
Parameters
- eventName
- Type: System.String
A named event on the DOM object.
- handler
- Type: System.EventHandler<HtmlEventArgs>
The method that handles the event.
| Exception | Condition |
|---|---|
| ArgumentException | eventName is an empty string. |
| ArgumentNullException | eventName is null. -or- handler is null. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.