Share via


DeviceWatcher.Removed イベント

定義

列挙されたデバイスのコレクションからデバイスが削除されたときに発生するイベント。

// Register
event_token Removed(TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;

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

// Revoke with event_revoker
DeviceWatcher::Removed_revoker Removed(auto_revoke_t, TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;
public event TypedEventHandler<DeviceWatcher,DeviceInformationUpdate> Removed;
function onRemoved(eventArgs) { /* Your code */ }
deviceWatcher.addEventListener("removed", onRemoved);
deviceWatcher.removeEventListener("removed", onRemoved);
- or -
deviceWatcher.onremoved = onRemoved;
Public Custom Event Removed As TypedEventHandler(Of DeviceWatcher, DeviceInformationUpdate) 

イベントの種類

注釈

注意

アプリは、デバイスの追加、削除、または更新がある場合に通知されるように、 追加、削除 、更新されたすべての イベントをサブスクライブする必要があります。 アプリが 追加された イベントのみを処理する場合、最初のデバイス列挙が完了した後にデバイスがシステムに追加された場合、アプリは更新プログラムを受け取りません。

適用対象

こちらもご覧ください