HwndSource.RemoveHook(HwndSourceHook) HwndSource.RemoveHook(HwndSourceHook) HwndSource.RemoveHook(HwndSourceHook) HwndSource.RemoveHook(HwndSourceHook) Method

Definition

Removes the event handlers that were added by AddHook(HwndSourceHook).

public:
 void RemoveHook(System::Windows::Interop::HwndSourceHook ^ hook);
[System.Security.SecurityCritical]
public void RemoveHook (System.Windows.Interop.HwndSourceHook hook);
member this.RemoveHook : System.Windows.Interop.HwndSourceHook -> unit
Public Sub RemoveHook (hook As HwndSourceHook)

Parameters

hook
HwndSourceHook HwndSourceHook HwndSourceHook HwndSourceHook

The event handler to remove.

Remarks

Important

This method is not available in the Internet security zone.

Security

UIPermission
to remove handlers. Associated enumeration: AllWindows

Applies to

See also