ProtectionPolicyManager.IsFileProtectionRequiredForNewFileAsync メソッド

定義

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 で保護する必要があるかどうかを示します。

public:
 static IAsyncOperation<bool> ^ IsFileProtectionRequiredForNewFileAsync(IStorageFolder ^ parentFolder, Platform::String ^ identity, Platform::String ^ desiredName);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> IsFileProtectionRequiredForNewFileAsync(IStorageFolder const& parentFolder, winrt::hstring const& identity, winrt::hstring const& desiredName);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> IsFileProtectionRequiredForNewFileAsync(IStorageFolder parentFolder, string identity, string desiredName);
function isFileProtectionRequiredForNewFileAsync(parentFolder, identity, desiredName)
Public Shared Function IsFileProtectionRequiredForNewFileAsync (parentFolder As IStorageFolder, identity As String, desiredName As String) As IAsyncOperation(Of Boolean)

パラメーター

parentFolder
IStorageFolder

保護するかどうかを知りたいファイルを含むフォルダー。

identity
String

Platform::String

winrt::hstring

エンタープライズ ID。

重要

このプロパティの現在の実装にバグがあるため、エンタープライズ ID を desiredName パラメーターに渡してください。

desiredName
String

Platform::String

winrt::hstring

ファイルに付ける名前。

重要

このプロパティの現在の実装にバグがあるため、この名前を identity パラメーターに渡してください。

戻り値

このフォルダー内のファイルを保護する必要がある場合は true、それ以外の場合は false

属性

Windows の要件

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

注釈

このメソッドの「 IsFileProtectionRequiredAsync」の解説セクションを参照してください。

適用対象