FileProtectionManager.UnprotectAsync Method
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.
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. |
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
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |
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
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |