ProtectionPolicyManager.CheckAccess(String, String) メソッド

定義

注意

2022 年 7 月以降、Microsoft は Windows Information Protection (WIP) と WIP をサポートする API を非推奨にしています。 Microsoft は、サポートされているバージョンの Windows で WIP を引き続きサポートします。 Windows の新しいバージョンには WIP の新機能は含まれません。また、今後のバージョンの Windows ではサポートされません。 詳細については、「Windows Information Protectionの終了を発表する」を参照してください。

データ保護のニーズに合わせて、Microsoft Purview 情報保護Microsoft Purview データ損失防止を使用することをお勧めします。 Purview を使用すると、構成のセットアップが簡略化され、高度な機能セットが提供されます。

エンタープライズで保護されたコンテンツへのアクセスを ID で使用できるかどうかを要求します。

public:
 static ProtectionPolicyEvaluationResult CheckAccess(Platform::String ^ sourceIdentity, Platform::String ^ targetIdentity);
 static ProtectionPolicyEvaluationResult CheckAccess(winrt::hstring const& sourceIdentity, winrt::hstring const& targetIdentity);
public static ProtectionPolicyEvaluationResult CheckAccess(string sourceIdentity, string targetIdentity);
function checkAccess(sourceIdentity, targetIdentity)
Public Shared Function CheckAccess (sourceIdentity As String, targetIdentity As String) As ProtectionPolicyEvaluationResult

パラメーター

sourceIdentity
String

Platform::String

winrt::hstring

アプリのソース エンタープライズ ID。 これは、管理されているメール アドレスまたはドメインです。 アプリでは、IsIdentityManaged を使用して、メール アドレスまたはドメインが管理されているかどうかをチェックする必要があります。

targetIdentity
String

Platform::String

winrt::hstring

チェックするエンタープライズ ID は、保護されたコンテンツにアクセスできます。

戻り値

クエリの結果である ProtectionPolicyEvaluationResult 列挙の値。

Windows の要件

アプリの機能
enterpriseDataPolicy

適用対象