共用方式為


StorePackageLicense.LicenseLost 事件

定義

例如,當使用者不再擁有目前裝置上授權的許可權 (時,使用者已在不同的裝置上取得授權) 。

// Register
event_token LicenseLost(TypedEventHandler<StorePackageLicense, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
StorePackageLicense::LicenseLost_revoker LicenseLost(auto_revoke_t, TypedEventHandler<StorePackageLicense, IInspectable const&> const& handler) const;
public event TypedEventHandler<StorePackageLicense,object> LicenseLost;
function onLicenseLost(eventArgs) { /* Your code */ }
storePackageLicense.addEventListener("licenselost", onLicenseLost);
storePackageLicense.removeEventListener("licenselost", onLicenseLost);
- or -
storePackageLicense.onlicenselost = onLicenseLost;
Public Custom Event LicenseLost As TypedEventHandler(Of StorePackageLicense, Object) 

事件類型

適用於