A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/uwp/cpp-ref-for-winrt/event-token below:

winrt::event_token struct (C++/WinRT) - Windows UWP applications

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.

Syntax
struct 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 bool

Checks whether or not the event_token object is valid and initialized.

Syntax
explicit 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.

event_token::value data member

An opaque numeric value uniquely representing the registration of a delegate with an event.

Syntax
int64_t value{};
operator== (equality operator)

Returns a value indicating whether the two parameters are equal to one another.

Syntax
inline 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.

Return value

true if the two parameters are equal to one another, otherwise false.

See also

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