共用方式為


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

適用於