ProtectionPolicyManager.IsUserDecryptionAllowed(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
从 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 中引入)
|