Share via


ProtectionPolicyEvaluationResult Enum

Definition

Note

Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.

For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.

Possible results when access to protected content is requested or queried.

public enum class ProtectionPolicyEvaluationResult
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ProtectionPolicyEvaluationResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ProtectionPolicyEvaluationResult
var value = Windows.Security.EnterpriseData.ProtectionPolicyEvaluationResult.allowed
Public Enum ProtectionPolicyEvaluationResult
Inheritance
ProtectionPolicyEvaluationResult
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Allowed 0

Access is allowed.

Blocked 1

Access is blocked.

ConsentRequired 2

Consent is required for access.

Applies to