ESimWatcher.Removed 事件

定义

从设备中删除 ESim 时发生。

注意

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

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

// Register
event_token Removed(TypedEventHandler<ESimWatcher, ESimRemovedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ESimWatcher::Removed_revoker Removed(auto_revoke_t, TypedEventHandler<ESimWatcher, ESimRemovedEventArgs const&> const& handler) const;
public event TypedEventHandler<ESimWatcher,ESimRemovedEventArgs> Removed;
function onRemoved(eventArgs) { /* Your code */ }
eSimWatcher.addEventListener("removed", onRemoved);
eSimWatcher.removeEventListener("removed", onRemoved);
- or -
eSimWatcher.onremoved = onRemoved;
Public Custom Event Removed As TypedEventHandler(Of ESimWatcher, ESimRemovedEventArgs) 

事件类型

Windows 要求

应用功能
Microsoft.eSIMManagement_8wekyb3d8bbwe

适用于