ProtectionPolicyManager.GetEnforcementLevel(String) Method

Definition

Note

Windows Information Protection (WIP) policy cannot be applied on Windows 10, version 1511 (build 10586) or earlier.

You can use this method to determine the current Windows Information Protection (WIP) enforcement level. WIP enforcement level is one aspect of mobile device management (MDM) policy configuration.

public:
 static EnforcementLevel GetEnforcementLevel(Platform::String ^ identity);
 static EnforcementLevel GetEnforcementLevel(winrt::hstring const& identity);
public static EnforcementLevel GetEnforcementLevel(string identity);
function getEnforcementLevel(identity)
Public Shared Function GetEnforcementLevel (identity As String) As EnforcementLevel

Parameters

identity
String

The enterprise identity. This is an email address or domain that is managed. Your app should use IsIdentityManaged to confirm that an email address or domain is managed.

Returns

EnforcementLevel

A value of the EnforcementLevel enumeration.

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10586.0)
Windows Mobile Extension SDK (introduced in 10.0.10586.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v2.0)

Applies to