Поделиться через


ProtectionPolicyManager.ProtectedContentRevoked Событие

Определение

Примечание

Начиная с июля 2022 г. корпорация Майкрософт прекращает использование Windows Information Protection (WIP) и ИНТЕРФЕЙСов API, поддерживающих WIP. Корпорация Майкрософт продолжит поддерживать WIP в поддерживаемых версиях Windows. Новые версии Windows не будут включать новые возможности для WIP и не будут поддерживаться в будущих версиях Windows. Дополнительные сведения см. в статье Объявление о прекращении работы Windows Information Protection.

Для защиты данных корпорация Майкрософт рекомендует использовать Защита информации Microsoft Purview и Защита от потери данных Microsoft Purview. Purview упрощает настройку конфигурации и предоставляет расширенный набор возможностей.

Событие, с помощью которого приложение регистрируется для получения уведомления об отмене защиты. Когда ваше приложение получает это событие, оно должно определить из ProtectedContentRevokedEventArgs.Identityes , какие корпоративные сущности отозвали защиту, и вызвать 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

Применяется к

См. также раздел