Share via


StorePackageLicense.LicenseLost Event

Definition

Raised when user no longer has rights to the license on the current device (for example, the user has acquired the license on a different device).

// 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) 

Event Type

Applies to