ESimWatcher.EnumerationCompleted 事件

定义

当观察程序完成枚举设备携带的 ESim 对象的集合时发生。

注意

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

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

// Register
event_token EnumerationCompleted(TypedEventHandler<ESimWatcher, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
ESimWatcher::EnumerationCompleted_revoker EnumerationCompleted(auto_revoke_t, TypedEventHandler<ESimWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<ESimWatcher,object> EnumerationCompleted;
function onEnumerationCompleted(eventArgs) { /* Your code */ }
eSimWatcher.addEventListener("enumerationcompleted", onEnumerationCompleted);
eSimWatcher.removeEventListener("enumerationcompleted", onEnumerationCompleted);
- or -
eSimWatcher.onenumerationcompleted = onEnumerationCompleted;
Public Custom Event EnumerationCompleted As TypedEventHandler(Of ESimWatcher, Object) 

事件类型

Windows 要求

应用功能
Microsoft.eSIMManagement_8wekyb3d8bbwe

适用于