Share via


FileProtectionManager.UnprotectAsync Method

Definition

Overloads

UnprotectAsync(IStorageItem)

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.

Removes protection from an enterprise-protected file.

UnprotectAsync(IStorageItem, FileUnprotectOptions)

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.

Removes protection from an enterprise-protected file.

UnprotectAsync(IStorageItem)

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.

Removes protection from an enterprise-protected file.

public:
 static IAsyncOperation<FileProtectionInfo ^> ^ UnprotectAsync(IStorageItem ^ target);
/// [Windows.Foundation.Metadata.Overload("UnprotectAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem const& target);
[Windows.Foundation.Metadata.Overload("UnprotectAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target);
function unprotectAsync(target)
Public Shared Function UnprotectAsync (target As IStorageItem) As IAsyncOperation(Of FileProtectionInfo)

Parameters

target
IStorageItem

The file to unprotect.

Returns

When the call to this method completes successfully, it returns a FileProtectionInfo object that provides information about the protection status of the file.

Attributes

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)

Applies to

UnprotectAsync(IStorageItem, FileUnprotectOptions)

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.

Removes protection from an enterprise-protected file.

public:
 static IAsyncOperation<FileProtectionInfo ^> ^ UnprotectAsync(IStorageItem ^ target, FileUnprotectOptions ^ options);
/// [Windows.Foundation.Metadata.Overload("UnprotectWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem const& target, FileUnprotectOptions const& options);
[Windows.Foundation.Metadata.Overload("UnprotectWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target, FileUnprotectOptions options);
function unprotectAsync(target, options)
Public Shared Function UnprotectAsync (target As IStorageItem, options As FileUnprotectOptions) As IAsyncOperation(Of FileProtectionInfo)

Parameters

target
IStorageItem

The file to unprotect.

options
FileUnprotectOptions

An object that specifies whether to audit this action.

Returns

When the call to this method completes successfully, it returns a FileProtectionInfo object that provides information about the protection status of the file.

Attributes

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)

Applies to