Delen via


MobileBroadbandAccountWatcher.AccountAdded Event

Definition

Occurs when a Mobile Broadband Account is added to 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 AccountAdded(TypedEventHandler<MobileBroadbandAccountWatcher, MobileBroadbandAccountEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MobileBroadbandAccountWatcher::AccountAdded_revoker AccountAdded(auto_revoke_t, TypedEventHandler<MobileBroadbandAccountWatcher, MobileBroadbandAccountEventArgs const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandAccountWatcher,MobileBroadbandAccountEventArgs> AccountAdded;
function onAccountAdded(eventArgs) { /* Your code */ }
mobileBroadbandAccountWatcher.addEventListener("accountadded", onAccountAdded);
mobileBroadbandAccountWatcher.removeEventListener("accountadded", onAccountAdded);
- or -
mobileBroadbandAccountWatcher.onaccountadded = onAccountAdded;
Public Custom Event AccountAdded 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.

Applies to