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,您可以選擇性地 () 讓使用者知道這項限制,方法是在對話方塊中顯示這項資訊。

適用於