ProtectionPolicyManager.GetEnforcementLevel(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 を使用すると、構成のセットアップが簡略化され、高度な機能セットが提供されます。

このメソッドを使用して、現在の Windows Information Protection (WIP) の適用レベルを決定できます。 WIP 適用レベルは、モバイル デバイス管理 (MDM) ポリシー構成の 1 つの側面です。

public:
 static EnforcementLevel GetEnforcementLevel(Platform::String ^ identity);
 static EnforcementLevel GetEnforcementLevel(winrt::hstring const& identity);
public static EnforcementLevel GetEnforcementLevel(string identity);
function getEnforcementLevel(identity)
Public Shared Function GetEnforcementLevel (identity As String) As EnforcementLevel

パラメーター

identity
String

Platform::String

winrt::hstring

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

戻り値

EnforcementLevel 列挙の値。

Windows の要件

デバイス ファミリ
Windows Desktop Extension SDK (10.0.10586.0 で導入)
Windows Mobile Extension SDK (10.0.10586.0 で導入)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (v2.0 で導入)

適用対象