ProtectionPolicyManager.PolicyChanged ProtectionPolicyManager.PolicyChanged ProtectionPolicyManager.PolicyChanged ProtectionPolicyManager.PolicyChanged ProtectionPolicyManager.PolicyChanged Event

Definition

Note

Windows Information Protection (WIP) policy cannot be applied on Windows 10, version 1511 (build 10586) or earlier.

An event that is raised in response to changes in Windows Information Protection (WIP) policy managed by the Policy CSP.

public : event EventHandler<Platform::Object> PolicyChanged
// Register
event_token PolicyChanged(EventHandler<Platform::Object> const& handler) const;

// Revoke with event_token
void PolicyChanged(event_token const& cookie) const;

// Revoke with event_revoker
PolicyChanged_revoker PolicyChanged(auto_revoke_t, EventHandler<Platform::Object> const& handler) const;
public event EventHandler<object> PolicyChanged
Public Event PolicyChanged As EventHandler (Of object)
function onPolicyChanged(eventArgs){/* Your code */}


protectionPolicyManager.addEventListener("policychanged", onPolicyChanged);
protectionPolicyManager.removeEventListener("policychanged", onPolicyChanged);