RemoveHandler

Removes the association between an event and an event handler, or declares which code to execute when adding an event handler.

Remarks

The RemoveHandler keyword can be used in these contexts:

  • Event Statement
    The RemoveHandler keyword declares a custom RemoveHandler accessor.

  • RemoveHandler Statement
    The RemoveHandler keyword removes the association between an event and an event handler.

See Also

Tasks

How to: Declare Events That Avoid Blocking

How to: Declare Events That Conserve Memory Use