StoreContext.OfflineLicensesChanged 이벤트

정의

앱 라이선스의 상태 변경될 때 발생합니다(예: 평가 기간이 만료되었거나 사용자가 앱의 전체 버전을 구매한 경우).

// Register
event_token OfflineLicensesChanged(TypedEventHandler<StoreContext, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
StoreContext::OfflineLicensesChanged_revoker OfflineLicensesChanged(auto_revoke_t, TypedEventHandler<StoreContext, IInspectable const&> const& handler) const;
public event TypedEventHandler<StoreContext,object> OfflineLicensesChanged;
function onOfflineLicensesChanged(eventArgs) { /* Your code */ }
storeContext.addEventListener("offlinelicenseschanged", onOfflineLicensesChanged);
storeContext.removeEventListener("offlinelicenseschanged", onOfflineLicensesChanged);
- or -
storeContext.onofflinelicenseschanged = onOfflineLicensesChanged;
Public Custom Event OfflineLicensesChanged As TypedEventHandler(Of StoreContext, Object) 

이벤트 유형

설명

이 이벤트가 발생하면 GetAppLicenseAsync 메서드를 호출하여 Microsoft Store에서 최신 앱 라이선스를 가져올 수 있습니다. 이 메서드에서 반환된 StoreAppLicense 개체에는 AddOnLicenses 속성의 앱에 대한 최신 추가 기능 라이선스도 포함되어 있습니다.

코드 예제를 포함하여 OfflineLicensesChanged 이벤트에 대한 자세한 내용은 앱의 평가판 버전 구현을 참조하세요.

참고

이 이벤트는 Windows.ApplicationModel.Store 네임스페이스의 LicenseChanged 이벤트와 동일합니다.

적용 대상

추가 정보