ProtectionPolicyManager.ProtectedAccessResumed 事件

定義

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

應用程式註冊以接收保護已繼續之通知的事件。

// 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) 

事件類型

Windows 需求

應用程式功能
enterpriseDataPolicy

備註

請參閱 ProtectedAccessSuspending 方法的備註一節。

適用於

另請參閱