FileProtectionManager.CopyProtectionAsync(IStorageItem, IStorageItem) FileProtectionManager.CopyProtectionAsync(IStorageItem, IStorageItem) FileProtectionManager.CopyProtectionAsync(IStorageItem, IStorageItem) FileProtectionManager.CopyProtectionAsync(IStorageItem, IStorageItem) FileProtectionManager.CopyProtectionAsync(IStorageItem, IStorageItem) Method

Definition

Note

Windows Information Protection (WIP) policy cannot be applied on Windows 10, version 1511 (build 10586) or earlier.

Replicate the file protection of one file onto another file.

public : static IAsyncOperation<Platform::Boolean> CopyProtectionAsync(IStorageItem source, IStorageItem target)
static IAsyncOperation<bool> CopyProtectionAsync(IStorageItem source, IStorageItem target) const;
public static IAsyncOperation<bool> CopyProtectionAsync(IStorageItem source, IStorageItem target)
Public Shared Function CopyProtectionAsync(source As IStorageItem, target As IStorageItem) As IAsyncOperation(Of bool)
Windows.Security.EnterpriseData.FileProtectionManager.copyProtectionAsync(source, target).done( /* Your success and error handlers */ );

Parameters

source
IStorageItem IStorageItem IStorageItem

The source file, from which file protection is being copied.

target
IStorageItem IStorageItem IStorageItem

The target file, to which file protection is being copied.

Returns

When the call to this method completes successfully, it returns true if the file protection was copied, or false if there was an error.

Additional features and requirements

Capabilities
enterpriseDataPolicy