DisplaySource.StatusChanged 이벤트

정의

DisplaySource.Status 속성의 값이 변경될 때 발생하는 이벤트입니다. DisplaySource 상태 대한 지식은 시스템 상태 전환에 대한 가시성을 제공하고 이러한 상태 변경을 처리할 수 있는 기회를 제공합니다.

// Register
event_token StatusChanged(TypedEventHandler<DisplaySource, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
DisplaySource::StatusChanged_revoker StatusChanged(auto_revoke_t, TypedEventHandler<DisplaySource, IInspectable const&> const& handler) const;
public event TypedEventHandler<DisplaySource,object> StatusChanged;
function onStatusChanged(eventArgs) { /* Your code */ }
displaySource.addEventListener("statuschanged", onStatusChanged);
displaySource.removeEventListener("statuschanged", onStatusChanged);
- or -
displaySource.onstatuschanged = onStatusChanged;
Public Custom Event StatusChanged As TypedEventHandler(Of DisplaySource, Object) 

이벤트 유형

Windows 요구 사항

디바이스 패밀리
Windows 11 (10.0.22000.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v14.0에서 도입되었습니다.)

적용 대상

추가 정보