DevicePortalConnection.Closed 이벤트

정의

Windows 디바이스 포털에 대한 연결이 닫혀 있을 때 발생합니다. 디바이스 포털 플러그 인 앱은 이 이벤트에 대한 처리기를 구현해야 합니다.

// Register
event_token Closed(TypedEventHandler<DevicePortalConnection, DevicePortalConnectionClosedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
DevicePortalConnection::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<DevicePortalConnection, DevicePortalConnectionClosedEventArgs const&> const& handler) const;
public event TypedEventHandler<DevicePortalConnection,DevicePortalConnectionClosedEventArgs> Closed;
function onClosed(eventArgs) { /* Your code */ }
devicePortalConnection.addEventListener("closed", onClosed);
devicePortalConnection.removeEventListener("closed", onClosed);
- or -
devicePortalConnection.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of DevicePortalConnection, DevicePortalConnectionClosedEventArgs) 

이벤트 유형

적용 대상