LicenseChangedEventHandler Delegate

Definition

Represents the method that will handle the LicenseChanged event.

public delegate void LicenseChangedEventHandler();
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3567583829, 4969, 19510, 131, 47, 111, 45, 136, 227, 101, 155)]
class LicenseChangedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3567583829, 4969, 19510, 131, 47, 111, 45, 136, 227, 101, 155)]
public delegate void LicenseChangedEventHandler();
var licenseChangedEventHandlerHandler = function(){
/* Your code */
}
Public Delegate Sub LicenseChangedEventHandler()
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

LicenseChanged events occur when the state of an app's license changes while the app is running. You can decide how to respond to these changes. For example, you could have the app respond immediately to the change or you could ignore it until the next time the user opens the app.

When using this event with CurrentAppSimulator, this event fires when you start up. When you run using the CurrentApp class it will only fire when there is a change in the License information.

Applies to