MobileBroadbandAccountWatcher.EnumerationCompleted Event

Definition

Occurs when the account watcher has finished enumerating accounts for 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 EnumerationCompleted(TypedEventHandler<MobileBroadbandAccountWatcher, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
MobileBroadbandAccountWatcher::EnumerationCompleted_revoker EnumerationCompleted(auto_revoke_t, TypedEventHandler<MobileBroadbandAccountWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandAccountWatcher,object> EnumerationCompleted;
function onEnumerationCompleted(eventArgs) { /* Your code */ }
mobileBroadbandAccountWatcher.addEventListener("enumerationcompleted", onEnumerationCompleted);
mobileBroadbandAccountWatcher.removeEventListener("enumerationcompleted", onEnumerationCompleted);
- or -
mobileBroadbandAccountWatcher.onenumerationcompleted = onEnumerationCompleted;
Public Custom Event EnumerationCompleted As TypedEventHandler(Of MobileBroadbandAccountWatcher, Object) 

Event Type

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

When the watcher is started, it enumerates all existing accounts (raising an AccountAdded event for each account). You can use the EnumerationCompleted event to determine when the enumeration operation has finished. After that, all proceeding events are new.

Applies to