ProtectionPolicyManager.CheckAccess(String, String) ProtectionPolicyManager.CheckAccess(String, String) ProtectionPolicyManager.CheckAccess(String, String) ProtectionPolicyManager.CheckAccess(String, String) ProtectionPolicyManager.CheckAccess(String, String) Method

Definition

Note

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

Request if access to enterprise-protected content is available to an identity.

public : static ProtectionPolicyEvaluationResult CheckAccess(Platform::String sourceIdentity, Platform::String targetIdentity)
static ProtectionPolicyEvaluationResult CheckAccess(winrt::hstring sourceIdentity, winrt::hstring targetIdentity) const;
public static ProtectionPolicyEvaluationResult CheckAccess(String sourceIdentity, String targetIdentity)
Public Shared Function CheckAccess(sourceIdentity As String, targetIdentity As String) As ProtectionPolicyEvaluationResult
var protectionPolicyEvaluationResult = Windows.Security.EnterpriseData.ProtectionPolicyManager.checkAccess(sourceIdentity, targetIdentity);

Parameters

sourceIdentity
String String String

The source enterprise identity of the app. This is an email address or domain that is managed. Your app should use IsIdentityManaged to check if an email address or domain is managed.

targetIdentity
String String String

The enterprise identity you want to check has access to the protected content.

Returns

Additional features and requirements

Capabilities
enterpriseDataPolicy