CoreApplication.Resuming 事件
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在应用恢复时发生。
// Register
static event_token Resuming(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void Resuming(event_token const* cookie) const;
// Revoke with event_revoker
static CoreApplication::Resuming_revoker Resuming(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> Resuming;
function onResuming(eventArgs) { /* Your code */ }
Windows.ApplicationModel.Core.CoreApplication.addEventListener("resuming", onResuming);
Windows.ApplicationModel.Core.CoreApplication.removeEventListener("resuming", onResuming);
- or -
Windows.ApplicationModel.Core.CoreApplication.onresuming = onResuming;
Public Shared Custom Event Resuming As EventHandler(Of Object)
此 API 仅在本机应用中受支持。
产品 | 版本 |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |