ProtectionPolicyManager.IsUserDecryptionAllowed(String) 方法

定義

注意

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

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

使用這個屬性來判斷是否允許解密受 Windows 資訊保護 (WIP) 保護的檔案。

public:
 static bool IsUserDecryptionAllowed(Platform::String ^ identity);
 static bool IsUserDecryptionAllowed(winrt::hstring const& identity);
public static bool IsUserDecryptionAllowed(string identity);
function isUserDecryptionAllowed(identity)
Public Shared Function IsUserDecryptionAllowed (identity As String) As Boolean

參數

identity
String

Platform::String

winrt::hstring

您想要檢查的企業身分識別具有受保護內容的存取權。

傳回

Boolean

bool

如果允許解密受 WIP 保護的檔案,則為true,否則為false

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 引進)

適用於