MobileBroadbandAccountWatcher.AccountRemoved イベント

定義

モバイル ブロードバンド アカウントがクライアントから削除されたときに発生します。

注意

この機能は、モバイル ネットワーク オペレーターによる特権アクセスを許可されたモバイル オペレーター アプリと UWP アプリでのみ使用できます。

この API を使用してアプリを Microsoft Store に発行する場合は、特別な承認が必要です。 詳細については、「アプリ機能宣言」トピックの「制限付き機能」セクションを参照してください。

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

イベントの種類

Windows の要件

アプリの機能
cellularDeviceControl cellularDeviceIdentity

注釈

アカウントのネットワーク アカウント ID は、 NetworkAccountId プロパティのイベント ハンドラーで使用できます。

適用対象