ProtectionPolicyManager.ProtectedAccessResumed Event

Definition

Note

Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.

For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.

Event with which the app registers to receive notification that protection has been resumed.

// Register
static event_token ProtectedAccessResumed(EventHandler<ProtectedAccessResumedEventArgs> const& handler) const;

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

// Revoke with event_revoker
static ProtectionPolicyManager::ProtectedAccessResumed_revoker ProtectedAccessResumed(auto_revoke_t, EventHandler<ProtectedAccessResumedEventArgs> const& handler) const;
public static event System.EventHandler<ProtectedAccessResumedEventArgs> ProtectedAccessResumed;
function onProtectedAccessResumed(eventArgs) { /* Your code */ }
Windows.Security.EnterpriseData.ProtectionPolicyManager.addEventListener("protectedaccessresumed", onProtectedAccessResumed);
Windows.Security.EnterpriseData.ProtectionPolicyManager.removeEventListener("protectedaccessresumed", onProtectedAccessResumed);
- or -
Windows.Security.EnterpriseData.ProtectionPolicyManager.onprotectedaccessresumed = onProtectedAccessResumed;
Public Shared Custom Event ProtectedAccessResumed As EventHandler(Of ProtectedAccessResumedEventArgs) 

Event Type

Windows requirements

App capabilities
enterpriseDataPolicy

Remarks

See the remarks section of the ProtectedAccessSuspending method.

Applies to

See also