ProtectionPolicyManager.TryApplyProcessUIPolicy(String) ProtectionPolicyManager.TryApplyProcessUIPolicy(String) ProtectionPolicyManager.TryApplyProcessUIPolicy(String) ProtectionPolicyManager.TryApplyProcessUIPolicy(String) ProtectionPolicyManager.TryApplyProcessUIPolicy(String) Method

Definition

Note

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

Enables UI policy enforcement for an enterprise identity. When an app is about to display a protected file (such as a PDF) or resource (buffer or stream) on its UI, it must enable UI policy enforcement based on the identity the file is protected to. A call to TryApplyProcessUIPolicy ensures that the OS knows about the current context of the app.

public : static Platform::Boolean TryApplyProcessUIPolicy(Platform::String identity)
static bool TryApplyProcessUIPolicy(winrt::hstring identity) const;
public static bool TryApplyProcessUIPolicy(String identity)
Public Shared Function TryApplyProcessUIPolicy(identity As String) As bool
var bool = Windows.Security.EnterpriseData.ProtectionPolicyManager.tryApplyProcessUIPolicy(identity);

Parameters

identity
String String 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

bool bool bool

true if the identity is being managed by an enterprise policy, or false if it is not.

Additional features and requirements

Capabilities
enterpriseDataPolicy