共用方式為


FileRevocationManager.Revoke(String) 方法

定義

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) 和支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,而且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 可簡化組態設定,並提供一組進階功能。

注意

Windows 10之後,FileRevocationManager可能無法用於發行。 請改 用 FileProtectionManager

撤銷針對指定的企業識別碼,針對選擇性抹除保護的所有檔案和資料夾。

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

撤銷此企業識別碼的選擇性抹除所保護的所有檔案和資料夾。 enterpriseIdentity 值必須格式化為國際化功能變數名稱 (IDN) ,且不能包含空格。 例如:contoso.com

屬性

備註

當您的應用程式判斷使用者已不再有效時,您可以使用 Revoke 方法來快速撤銷保護企業身分識別之所有檔案和資料夾的存取權,如下列範例所示。 Revoke 方法不會刪除檔案。 Revoke 方法會將檔案置於無法存取的狀態。 您可以將程式碼新增至您的應用程式,以刪除無法存取且已撤銷的檔案。

適用於

另請參閱