다음을 통해 공유


AppInstance.Activated 이벤트

정의

Microsoft.Windows.AppLifecycle.AppInstance.RedirectActivationToAsync통해 리디렉션된 활성화에 대해 발생합니다.

/// [Windows.Foundation.Metadata.Experimental]
/// [add: Windows.Foundation.Metadata.Experimental]
/// [remove: Windows.Foundation.Metadata.Experimental]
// Register
event_token Activated(EventHandler<AppActivationArguments> const& handler) const;

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

// Revoke with event_revoker
AppInstance::Activated_revoker Activated(auto_revoke_t, EventHandler<AppActivationArguments> const& handler) const;
// Register
event_token Activated(EventHandler<AppActivationArguments> const& handler) const;

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

// Revoke with event_revoker
AppInstance::Activated_revoker Activated(auto_revoke_t, EventHandler<AppActivationArguments> const& handler) const;
[Windows.Foundation.Metadata.Experimental]
[add: Windows.Foundation.Metadata.Experimental]
[remove: Windows.Foundation.Metadata.Experimental]
public event System.EventHandler<AppActivationArguments> Activated;
public event System.EventHandler<AppActivationArguments> Activated;
function onActivated(eventArgs) { /* Your code */ }
appInstance.addEventListener("activated", onActivated);
appInstance.removeEventListener("activated", onActivated);
- or -
appInstance.onactivated = onActivated;
Public Custom Event Activated As EventHandler(Of AppActivationArguments) 

이벤트 유형

특성

설명

이 이벤트는 리디렉션된 활성화에 대해서만 발생합니다. 다른 모든 경우에서 앱은 microsoft.Windows.AppLifecycle.AppInstance.GetActivatedEventArgs 사용하거나 Windows.ApplicationModel.AppInstance.GetActivatedEventArgs 활성화 시 인수를 검색해야 합니다.

적용 대상