ProtectionPolicyManager.ProtectedAccessSuspending イベント

定義

注意

2022 年 7 月以降、Microsoft は Windows Information Protection (WIP) と WIP をサポートする API を非推奨とします。 Microsoft は引き続き、サポートされているバージョンの Windows で WIP をサポートします。 Windows の新しいバージョンには WIP の新機能は含まれません。また、今後のバージョンの Windows ではサポートされません。 詳細については、「Windows Information Protectionの終了を発表する」を参照してください。

データ保護のニーズに合わせて、Microsoft Purview 情報保護Microsoft Purview データ損失防止を使用することをお勧めします。 Purview を使用すると、構成のセットアップが簡略化され、高度な機能セットが提供されます。

保護が中断されることを示す通知を受け取るためにアプリが登録するイベント。

// Register
static event_token ProtectedAccessSuspending(EventHandler<ProtectedAccessSuspendingEventArgs> const& handler) const;

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

// Revoke with event_revoker
static ProtectionPolicyManager::ProtectedAccessSuspending_revoker ProtectedAccessSuspending(auto_revoke_t, EventHandler<ProtectedAccessSuspendingEventArgs> const& handler) const;
public static event System.EventHandler<ProtectedAccessSuspendingEventArgs> ProtectedAccessSuspending;
function onProtectedAccessSuspending(eventArgs) { /* Your code */ }
Windows.Security.EnterpriseData.ProtectionPolicyManager.addEventListener("protectedaccesssuspending", onProtectedAccessSuspending);
Windows.Security.EnterpriseData.ProtectionPolicyManager.removeEventListener("protectedaccesssuspending", onProtectedAccessSuspending);
- or -
Windows.Security.EnterpriseData.ProtectionPolicyManager.onprotectedaccesssuspending = onProtectedAccessSuspending;
Public Shared Custom Event ProtectedAccessSuspending As EventHandler(Of ProtectedAccessSuspendingEventArgs) 

イベントの種類

Windows の要件

アプリの機能
enterpriseDataPolicy

注釈

エンタープライズ コンテンツを処理するように設計されたアプリでは、機密データをメモリに保持しないようにする必要があります。 これを確認するために、デバイスがロックまたはロック解除されたときに、 ProtectedAccessSuspending イベントと ProtectedAccessResumed イベントに通知されるように登録します。 ProtectedAccessSuspending は、デバイスでプロビジョニングされたデータ保護キーが一時的に削除される前に発生します。 これらのキーは、デバイスがロックされている間に暗号化されたデータへの不正アクセスを防ぐために、デバイスがロックされている場合に削除されます。 ProtectedAccessResumed は、デバイスのロック解除時にキーが再び使用可能になると発生します。 デバイスがロックされると、アプリは DataProtectionManager を使用してメモリ内の機密コンテンツを確実に保護します。 また、開いているファイル ハンドルを保護されたファイルに閉じて、システムが機密データをメモリにキャッシュしないようにします。

適用対象

こちらもご覧ください