ProtectionPolicyManager.ProtectedContentRevoked イベント

定義

Note

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

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

保護が取り消されることを示す通知を受け取るためにアプリが登録するイベント。 アプリがこのイベントを受信すると、 ProtectedContentRevokedEventArgs.Identits から保護が取り消されたエンタープライズ エンティティを特定し、 RevokeContent を呼び出し、ID に関連付けられているメタデータを削除する必要があります。 このイベントは、アプリが 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

適用対象

こちらもご覧ください