StorePackageLicense.LicenseLost Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)