FileProtectionManager.UnprotectAsync FileProtectionManager.UnprotectAsync FileProtectionManager.UnprotectAsync FileProtectionManager.UnprotectAsync FileProtectionManager.UnprotectAsync Method

Definition

Overloads

UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem)

Removes protection from an enterprise-protected file.

UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions)

Removes protection from an enterprise-protected file.

UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem) UnprotectAsync(IStorageItem)

Removes protection from an enterprise-protected file.

public : static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target)
static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target) const;
public static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target)
Public Shared Function UnprotectAsync(target As IStorageItem) As IAsyncOperation(Of FileProtectionInfo)
Windows.Security.EnterpriseData.FileProtectionManager.unprotectAsync(target).done( /* Your success and error handlers */ );

Parameters

target
IStorageItem IStorageItem 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.

Additional features and requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0) Windows Mobile Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced v4)

UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions) UnprotectAsync(IStorageItem, FileUnprotectOptions)

Removes protection from an enterprise-protected file.

public : static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target, FileUnprotectOptions options)
static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target, FileUnprotectOptions options) const;
public static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target, FileUnprotectOptions options)
Public Shared Function UnprotectAsync(target As IStorageItem, options As FileUnprotectOptions) As IAsyncOperation(Of FileProtectionInfo)
Windows.Security.EnterpriseData.FileProtectionManager.unprotectAsync(target, options).done( /* Your success and error handlers */ );

Parameters

target
IStorageItem IStorageItem IStorageItem

The file to unprotect.

options
FileUnprotectOptions FileUnprotectOptions 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.

Additional features and requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0) Windows Mobile Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced v4)