WindowsIntegrityPolicy.PolicyChanged 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 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)