EventRegistrationToken structure (eventtoken.h)

Defines an event handler that has been registered with an event source.

Syntax

typedef struct EventRegistrationToken {
  __int64 value;
} EventRegistrationToken;

Members

value

Type: INT64

An identifying value that is provided by an event source.

Remarks

Use an EventRegistrationToken to unsubscribe from a Windows Runtime event source.

You acquire an EventRegistrationToken when you subscribe to an event.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header eventtoken.h

See also

IEventHandler<T> interface