FileProtectionInfo.IsProtectWhileOpenSupported Property

Definition

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 your app can protect a file while it is open.

public:
 property bool IsProtectWhileOpenSupported { bool get(); };
bool IsProtectWhileOpenSupported();
public bool IsProtectWhileOpenSupported { get; }
var boolean = fileProtectionInfo.isProtectWhileOpenSupported;
Public ReadOnly Property IsProtectWhileOpenSupported As Boolean

Property Value

Boolean

bool

true if your app can protect a file while it is open, or false if that capability is not supported on the device.

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.16299.0)
Windows Mobile Extension SDK (introduced in 10.0.16299.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v5.0)

Remarks

If this property returns true, you can protect a file while the file is open.

This can be useful if users open a file that is not protected and attempt to paste enterprise protected information into it. You can protect the open file and save users from having to respond to a prompt or, depending on the level of policy enforcement, save them from being blocked from pasting content completely.

Applies to