Share via


WindowsIntegrityPolicy.PolicyChanged Event

Definition

Raised when the current Windows 10 secure mode (10 S mode) changes.

// Register
static event_token PolicyChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void PolicyChanged(event_token const* cookie) const;

// Revoke with event_revoker
static WindowsIntegrityPolicy::PolicyChanged_revoker PolicyChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> PolicyChanged;
function onPolicyChanged(eventArgs) { /* Your code */ }
Windows.System.Profile.WindowsIntegrityPolicy.addEventListener("policychanged", onPolicyChanged);
Windows.System.Profile.WindowsIntegrityPolicy.removeEventListener("policychanged", onPolicyChanged);
- or -
Windows.System.Profile.WindowsIntegrityPolicy.onpolicychanged = onPolicyChanged;
Public Shared Custom Event PolicyChanged As EventHandler(Of Object) 

Event Type

Applies to