Previous Page
Next Page

Unsubscribing from an Event

Knowing that you use the += operator to attach a delegate to an event, you can probably guess that you use the –= operator to detach a delegate from an event. Calling the –= operator removes the method from the event's internal delegate collection. This action is often referred to as unsubscribing from the event.


Previous Page
Next Page