다음을 통해 공유


IBackgroundTaskRegistration.Completed 이벤트

정의

완료된 이벤트 처리기를 등록된 백그라운드 작업에 연결합니다.

public:
 event BackgroundTaskCompletedEventHandler ^ Completed;
// Register
event_token Completed(BackgroundTaskCompletedEventHandler const& handler) const;

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

// Revoke with event_revoker
IBackgroundTaskRegistration::Completed_revoker Completed(auto_revoke_t, BackgroundTaskCompletedEventHandler const& handler) const;
event BackgroundTaskCompletedEventHandler Completed;
function onCompleted(eventArgs) { /* Your code */ }
iBackgroundTaskRegistration.addEventListener("completed", onCompleted);
iBackgroundTaskRegistration.removeEventListener("completed", onCompleted);
- or -
iBackgroundTaskRegistration.oncompleted = onCompleted;
Event Completed As BackgroundTaskCompletedEventHandler 

이벤트 유형

적용 대상