EventSource::Remove Method

Deletes the event handler represented by the specified event registration token from the set of event handlers associated with the current EventSource object.

HRESULT Remove(
   EventRegistrationToken token
);

Parameters

  • token
    A handle that represents an event handler. This token was returned when the event handler was registered by the Add() method.

Return Value

S_OK if successful; otherwise, an HRESULT that indicates the error.

Remarks

For more information about the EventRegistrationToken structure, see the Windows::Foundation::EventRegistrationToken Structure topic in the Windows Runtime reference documentation.

Requirements

Header: event.h

Namespace: Microsoft::WRL

See Also

Reference

EventSource Class