HwndSource.RemoveHook Method (HwndSourceHook)

 

Removes the event handlers that were added by AddHook.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

<SecurityCriticalAttribute>
Public Sub RemoveHook (
	hook As HwndSourceHook
)

Parameters

hook
Type: System.Windows.Interop.HwndSourceHook

The event handler to remove.

System_CAPS_security Security Note

This method is not available in the Internet security zone.

UIPermission

to remove handlers. Associated enumeration: AllWindows

.NET Framework
Available since 3.0
Return to top
Show: