Policy Manager. Get Enforcement Level(String) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
Public Shared Function GetEnforcementLevel (identity As String) As EnforcementLevel
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.
A value of the EnforcementLevel enumeration.
Windows Desktop Extension SDK (introduced in 10.0.10586.0)
Windows Mobile Extension SDK (introduced in 10.0.10586.0)
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v2.0)