A token returned when registering an event-handling delegate with an event; can be used to revoke the registration of the same delegate. For more info about handling events, and code examples, see Handle events by using delegates in C++/WinRT.
Syntaxstruct event_token
Requirements
Minimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)
Namespace: winrt
Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)
Data members Member operators Free operators event_token::operator boolChecks whether or not the event_token object is valid and initialized.
Syntaxexplicit operator bool() const noexcept;
Return value
true
if the event_token object is valid and initialized (the value of its value
field is not zero), otherwise false
.
An opaque numeric value uniquely representing the registration of a delegate with an event.
Syntaxint64_t value{};
operator== (equality operator)
Returns a value indicating whether the two parameters are equal to one another.
Syntaxinline bool operator==(winrt::event_token const& left, winrt::event_token const& right) noexcept;
Parameters
left
right
An event_token value to compare with the other parameter.
true
if the two parameters are equal to one another, otherwise false
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4