Share via


LicenseInformation.LicenseChanged Event

Definition

Raises a notification event when the status of the app's license changes.

public:
 virtual event LicenseChangedEventHandler ^ LicenseChanged;
// Register
event_token LicenseChanged(LicenseChangedEventHandler const& handler) const;

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

// Revoke with event_revoker
LicenseInformation::LicenseChanged_revoker LicenseChanged(auto_revoke_t, LicenseChangedEventHandler const& handler) const;
public event LicenseChangedEventHandler LicenseChanged;
function onLicenseChanged(eventArgs) { /* Your code */ }
licenseInformation.addEventListener("licensechanged", onLicenseChanged);
licenseInformation.removeEventListener("licensechanged", onLicenseChanged);
- or -
licenseInformation.onlicensechanged = onLicenseChanged;
Public Custom Event LicenseChanged As LicenseChangedEventHandler 

Event Type

Remarks

LicenseChanged events aren't always immediate. If you’ve registered for the event, the event should fire within an hour; if not, it should occur within 6 hours. Generally, it's recommended to wait up to 6 hours when testing with CurrentApp, knowing that it will most likely take less time if the app has registered the event.

Windows Phone 8

This event is not raised on Windows Phone 8.

Applies to