ProtectionPolicyManager.ProtectedContentRevoked 事件

定义

注意

从 2022 年 7 月开始,Microsoft 将弃用 Windows 信息保护 (WIP) 和支持 WIP 的 API。 Microsoft 将继续在受支持的 Windows 版本上支持 WIP。 新版本的 Windows 不包含 WIP 的新功能,将来的 Windows 版本中不支持它。 有关详细信息,请参阅宣布 Windows 信息保护的日落

出于数据保护需求,Microsoft 建议使用Microsoft Purview 信息保护Microsoft Purview 数据丢失防护。 Purview 简化了配置设置,并提供一组高级功能。

应用注册以接收要撤销保护的通知的事件。 当应用收到此事件时,它应从 ProtectedContentRevokedEventArgs.Identities 确定哪些企业实体已撤销保护,并调用 RevokeContent 并删除与标识关联的任何元数据。 当应用调用 RevokeContent 来撤销其自己的访问权限时,不会引发此事件。

// Register
static event_token ProtectedContentRevoked(EventHandler<ProtectedContentRevokedEventArgs> const& handler) const;

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

// Revoke with event_revoker
static ProtectionPolicyManager::ProtectedContentRevoked_revoker ProtectedContentRevoked(auto_revoke_t, EventHandler<ProtectedContentRevokedEventArgs> const& handler) const;
public static event System.EventHandler<ProtectedContentRevokedEventArgs> ProtectedContentRevoked;
function onProtectedContentRevoked(eventArgs) { /* Your code */ }
Windows.Security.EnterpriseData.ProtectionPolicyManager.addEventListener("protectedcontentrevoked", onProtectedContentRevoked);
Windows.Security.EnterpriseData.ProtectionPolicyManager.removeEventListener("protectedcontentrevoked", onProtectedContentRevoked);
- or -
Windows.Security.EnterpriseData.ProtectionPolicyManager.onprotectedcontentrevoked = onProtectedContentRevoked;
Public Shared Custom Event ProtectedContentRevoked As EventHandler(Of ProtectedContentRevokedEventArgs) 

事件类型

Windows 要求

应用功能
enterpriseDataPolicy

适用于

另请参阅