Jaa


ESimWatcher.Removed Event

Definition

Occurs when an ESim is removed from the device.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Microsoft Store, then you'll need to request special approval to use the custom capability Microsoft.eSIMManagement_8wekyb3d8bbwe. For more info, see Custom capabilities.

// 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) 

Event Type

Windows requirements

App capabilities
Microsoft.eSIMManagement_8wekyb3d8bbwe

Applies to