Bagikan melalui


ProtectionPolicyManager.ProtectedContentRevoked Kejadian

Definisi

Catatan

Mulai Juli 2022, Microsoft menghentikan Windows Information Protection (WIP) dan API yang mendukung WIP. Microsoft akan terus mendukung WIP pada versi Windows yang didukung. Versi baru Windows tidak akan menyertakan kemampuan baru untuk WIP, dan tidak akan didukung di versi Windows yang akan datang. Untuk informasi selengkapnya, lihat Mengumumkan matahari terbenam windows Information Protection.

Untuk kebutuhan perlindungan data Anda, Microsoft menyarankan agar Anda menggunakan Perlindungan Informasi Microsoft Purview dan Pencegahan Kehilangan Data Microsoft Purview. Purview menyederhanakan pengaturan konfigurasi dan menyediakan serangkaian kemampuan tingkat lanjut.

Peristiwa di mana aplikasi Anda mendaftar untuk menerima pemberitahuan bahwa perlindungan akan dicabut. Saat aplikasi Anda menerima peristiwa ini, aplikasi harus menentukan dari ProtectedContentRevokedEventArgs.Identities yang telah dicabut oleh entitas perusahaan, dan memanggil RevokeContent serta menghapus metadata apa pun yang terkait dengan identitas. Kejadian ini tidak dinaikkan saat aplikasi Anda memanggil RevokeContent untuk mencabut aksesnya sendiri.

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

Jenis Acara

Persyaratan Windows

Kemampuan aplikasi
enterpriseDataPolicy

Berlaku untuk

Lihat juga