ESimWatcher.Added 事件

定义

ESim 添加到设备时发生。

注意

此功能仅适用于移动运营商应用和由移动网络运营商授予特权访问权限的 UWP 应用。

如果要使用此 API 并将应用发布到 Microsoft Store,则需要请求特殊批准才能 Microsoft.eSIMManagement_8wekyb3d8bbwe使用自定义功能。 有关详细信息,请参阅 自定义功能

// Register
event_token Added(TypedEventHandler<ESimWatcher, ESimAddedEventArgs const&> const& handler) const;

// Revoke with event_token
void Added(event_token const* cookie) const;

// Revoke with event_revoker
ESimWatcher::Added_revoker Added(auto_revoke_t, TypedEventHandler<ESimWatcher, ESimAddedEventArgs const&> const& handler) const;
public event TypedEventHandler<ESimWatcher,ESimAddedEventArgs> Added;
function onAdded(eventArgs) { /* Your code */ }
eSimWatcher.addEventListener("added", onAdded);
eSimWatcher.removeEventListener("added", onAdded);
- or -
eSimWatcher.onadded = onAdded;
Public Custom Event Added As TypedEventHandler(Of ESimWatcher, ESimAddedEventArgs) 

事件类型

Windows 要求

应用功能
Microsoft.eSIMManagement_8wekyb3d8bbwe

适用于