FileProtectionManager.IsContainerAsync(IStorageFile) FileProtectionManager.IsContainerAsync(IStorageFile) FileProtectionManager.IsContainerAsync(IStorageFile) FileProtectionManager.IsContainerAsync(IStorageFile) FileProtectionManager.IsContainerAsync(IStorageFile) Method

Definition

Note

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

Use this property to determine whether the storage file is actually a container with a file contained within it.

public : static IAsyncOperation<Platform::Boolean> IsContainerAsync(IStorageFile file)
static IAsyncOperation<bool> IsContainerAsync(IStorageFile file) const;
public static IAsyncOperation<bool> IsContainerAsync(IStorageFile file)
Public Shared Function IsContainerAsync(file As IStorageFile) As IAsyncOperation(Of bool)
Windows.Security.EnterpriseData.FileProtectionManager.isContainerAsync(file).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

The file that you want to determine is a container or not.

Returns

true if the storage file is a container, and false if it is not.

Additional features and requirements

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