ProtectionPolicyManager.TryApplyProcessUIPolicy(String) メソッド

定義

Note

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

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

エンタープライズ ID に対する UI ポリシーの適用を有効にします。 アプリが保護されたファイル (PDF など) またはリソース (バッファーまたはストリーム) を UI に表示しようとしている場合は、ファイルが保護されている ID に基づいて UI ポリシーの適用を有効にする必要があります。 TryApplyProcessUIPolicy を呼び出すと、OS がアプリの現在のコンテキストを確実に認識できます。

public:
 static bool TryApplyProcessUIPolicy(Platform::String ^ identity);
 static bool TryApplyProcessUIPolicy(winrt::hstring const& identity);
public static bool TryApplyProcessUIPolicy(string identity);
function tryApplyProcessUIPolicy(identity)
Public Shared Function TryApplyProcessUIPolicy (identity As String) As Boolean

パラメーター

identity
String

Platform::String

winrt::hstring

エンタープライズ ID。 これは、管理されているメール アドレスまたはドメインです。 アプリでは 、IsIdentityManaged を使用して、メール アドレスまたはドメインが管理されていることを確認する必要があります。

戻り値

Boolean

bool

ID がエンタープライズ ポリシーによって管理されている場合は true、そうでない場合は false

Windows の要件

アプリの機能
enterpriseDataPolicy

適用対象