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) 

이벤트 유형

설명

참고

앱은 추가, 제거업데이트 된 모든 이벤트를 구독하여 디바이스 추가, 제거 또는 업데이트가 있을 때 알림을 받아야 합니다. 앱이 추가 된 이벤트만 처리하는 경우 초기 디바이스 열거가 완료된 후 디바이스가 시스템에 추가되면 업데이트가 수신되지 않습니다.

적용 대상

추가 정보