MobileBroadbandAccountWatcher.AccountRemoved Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a Mobile Broadband Account is removed from the client.
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 special approval. For more information, see the Restricted capabilities section in the App capability declarations topic.
// Register
event_token AccountRemoved(TypedEventHandler<MobileBroadbandAccountWatcher, MobileBroadbandAccountEventArgs const&> const& handler) const;
// Revoke with event_token
void AccountRemoved(event_token const* cookie) const;
// Revoke with event_revoker
MobileBroadbandAccountWatcher::AccountRemoved_revoker AccountRemoved(auto_revoke_t, TypedEventHandler<MobileBroadbandAccountWatcher, MobileBroadbandAccountEventArgs const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandAccountWatcher,MobileBroadbandAccountEventArgs> AccountRemoved;
function onAccountRemoved(eventArgs) { /* Your code */ }
mobileBroadbandAccountWatcher.addEventListener("accountremoved", onAccountRemoved);
mobileBroadbandAccountWatcher.removeEventListener("accountremoved", onAccountRemoved);
- or -
mobileBroadbandAccountWatcher.onaccountremoved = onAccountRemoved;
Public Custom Event AccountRemoved As TypedEventHandler(Of MobileBroadbandAccountWatcher, MobileBroadbandAccountEventArgs)
Event Type
Windows requirements
App capabilities |
cellularDeviceControl
cellularDeviceIdentity
|
Remarks
The network account id of the account is available in the event handler from the NetworkAccountId property.