FileProtectionStatus 列舉

定義

注意

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

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

描述檔案或資料夾的企業保護狀態。

public enum class FileProtectionStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Security.EnterpriseData.EnterpriseDataContract, 65536)]
enum class FileProtectionStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Security.EnterpriseData.EnterpriseDataContract), 65536)]
public enum FileProtectionStatus
var value = Windows.Security.EnterpriseData.FileProtectionStatus.undetermined
Public Enum FileProtectionStatus
繼承
FileProtectionStatus
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.10240.0 引進)
Windows Mobile Extension SDK (已於 10.0.10240.0 引進)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (已於 v1.0 引進)

欄位

AccessSuspended 9

在鎖定裝置時,已卸載存取受保護專案的金鑰。

FileInUse 10

專案正由另一個進程使用。 只有在企業保護變成獨佔可用之後,才可以將企業保護套用至它。

LicenseExpired 8

專案的 RMS 授權已過期。

NotProtectable 6

專案已加密或為系統檔案,且無法使用企業保護來保護。

Protected 3

專案會使用企業保護來保護,而您是應用程式可以開啟此檔案,因為它位於原則的允許清單上。

ProtectedByOtherUser 4

注意

Windows 10之後的版本可能無法使用ProtectedByOtherUser。 請改用 ProtectedToOtherIdentity

另一位使用者已使用企業保護來保護專案。

ProtectedToOtherEnterprise 5

注意

Windows 10之後的版本可能無法使用ProtectedToOtherEnterprise。 請改用 ProtectedToOtherIdentity

該專案會使用企業保護來保護另一個企業識別碼。

ProtectedToOtherIdentity 7

該專案會使用企業保護來保護另一個企業身分識別。

Revoked 2

專案已使用企業保護撤銷。

Undetermined 0

注意

在Windows 10之後,可能無法使用未決定的版本。 請改用 [未知]。

專案正在加密或解密,且無法判斷企業保護狀態。 請稍後再試。

Unknown 0

專案正在加密或解密,且無法判斷企業保護狀態。 請稍後再試。

Unprotected 1

專案不會使用企業保護來保護。

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
1511 10586 AccessSuspended
1511 10586 LicenseExpired
1607 14393 FileInUse

適用於