FileRevocationManager.Revoke(String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意
2022 年 7 月以降、Microsoft は Windows Information Protection (WIP) と WIP をサポートする API を非推奨にしています。 Microsoft は、サポートされているバージョンの Windows で WIP を引き続きサポートします。 Windows の新しいバージョンには WIP の新機能は含まれません。また、今後のバージョンの Windows ではサポートされません。 詳細については、「Windows Information Protectionの終了を発表する」を参照してください。
データ保護のニーズに合わせて、Microsoft Purview 情報保護とMicrosoft Purview データ損失防止を使用することをお勧めします。 Purview を使用すると、構成のセットアップが簡略化され、高度な機能セットが提供されます。
注意
FileRevocationManager は、Windows 10後のリリースでは使用できない場合があります。 代わりに、 FileProtectionManager を使用します。
指定したエンタープライズ ID の選択的ワイプ用に保護されているすべてのファイルとフォルダーを取り消します。
public:
static void Revoke(Platform::String ^ enterpriseIdentity);
/// [Windows.Foundation.Metadata.Deprecated("FileRevocationManager might be unavailable after Windows 10. Instead, use FileProtectionManager.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Security.EnterpriseData.EnterpriseDataContract)]
static void Revoke(winrt::hstring const& enterpriseIdentity);
/// [Windows.Foundation.Metadata.Deprecated("FileRevocationManager might be unavailable after Windows 10. Instead, use FileProtectionManager.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Security.EnterpriseData.EnterpriseDataContract")]
static void Revoke(winrt::hstring const& enterpriseIdentity);
[Windows.Foundation.Metadata.Deprecated("FileRevocationManager might be unavailable after Windows 10. Instead, use FileProtectionManager.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Security.EnterpriseData.EnterpriseDataContract))]
public static void Revoke(string enterpriseIdentity);
[Windows.Foundation.Metadata.Deprecated("FileRevocationManager might be unavailable after Windows 10. Instead, use FileProtectionManager.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Security.EnterpriseData.EnterpriseDataContract")]
public static void Revoke(string enterpriseIdentity);
function revoke(enterpriseIdentity)
Public Shared Sub Revoke (enterpriseIdentity As String)
パラメーター
- enterpriseIdentity
-
String
Platform::String
winrt::hstring
このエンタープライズ ID の選択的ワイプによって保護されているすべてのファイルとフォルダーを取り消します。 enterpriseIdentity 値は国際化ドメイン名 (IDN) として書式設定する必要があり、スペースを含めることはできません。 たとえば、「 contoso.com 」のように入力します。
- 属性
注釈
次の例に示すように、ユーザーが有効でなくなったとアプリで判断した場合は、次の例に示すように Revoke メソッドを使用して、エンタープライズ ID 用に保護されているすべてのファイルとフォルダーへのアクセスをすばやく取り消すことができます。 ファイルは Revoke メソッドによって削除されません。 Revoke メソッドを使用すると、ファイルにアクセスできない状態になります。 アクセスできないファイルと取り消されたファイルを削除するコードをアプリに追加できます。