Share via


ProtectionPolicyManager.IsRoamableProtectionEnabled(String) 方法

定义

注意

从 2022 年 7 月开始,Microsoft 将弃用 Windows 信息保护 (WIP) 和支持 WIP 的 API。 Microsoft 将继续在受支持的 Windows 版本上支持 WIP。 新版本的 Windows 不包括 WIP 的新功能,并且将来的 Windows 版本将不受支持。 有关详细信息,请参阅宣布 Windows 信息保护停用

对于数据保护需求,Microsoft 建议使用Microsoft Purview 信息保护Microsoft Purview 数据丢失防护。 Purview 简化了配置设置,并提供一组高级功能。

确定是否将策略配置为使用 Azure 信息保护保护复制到可移动驱动器的文件。

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

参数

identity
String

Platform::String

winrt::hstring

企业标识。

返回

Boolean

bool

如果文件将使用 RMS 密钥进行保护,则为 true,否则为 false

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.15063.0 中引入)
Windows Mobile Extension SDK (在 10.0.15063.0 中引入)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (在 v4.0 中引入)

注解

如果此方法返回 false,则用户复制到可移动驱动器的文件将使用本地密钥进行保护,而当前设备上的其他用户或(如果该驱动器连接到另一台设备)上的任何人无法访问这些文件。 如果此方法返回 false,则可以选择 () 通过在对话框中显示此信息来让用户了解此限制。

适用于