ProtectionPolicyManager.IsRoamableProtectionEnabled(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Note
Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.
For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.
Determines whether the policy is configured to protect files that are copied to removable drives by using Azure Information Protection.
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
Parameters
- identity
-
String
Platform::String
winrt::hstring
The enterprise identity.
Returns
bool
true if files will be protected by using RMS keys, otherwise false.
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
Windows Mobile Extension SDK (introduced in 10.0.15063.0) |
API contract |
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v4.0)
|
Remarks
If this method returns false, files that users copy to removable drives will be protected by using local keys and those files won't be accessible on those drives to other users on the current device or, if the drive is connected to another device, to anyone on that newly connected device. If this method returns false, you could (optionally) let users know about this limitation by presenting this information in a dialog box.