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-revoker below:

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

winrt::event_revoker struct template (C++/WinRT)

In this article

When you register a delegate, you can request an event revoker object (also known as an auto revoker). You can manually revoke your delegate by calling the event_revoker::revoke member function on that object, or you can just allow it to go out of scope. For more info, and a code example, see Revoke a registered delegate.

Syntax
template <typename I>
struct event_revoker
Template parameters

typename I The type of the event source (the object that raises the event).

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)

Member functions event_revoker::revoke function

Revokes the delegate from whose registration the event_revoker object was returned.

Syntax
void revoke() noexcept;
See also

Additional resources

In this article

Was this page helpful?


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