FileProtectionManager.LoadFileFromContainerAsync FileProtectionManager.LoadFileFromContainerAsync FileProtectionManager.LoadFileFromContainerAsync FileProtectionManager.LoadFileFromContainerAsync FileProtectionManager.LoadFileFromContainerAsync Method

Definition

Overloads

LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile)

Note

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

Create an enterprise-protected file, and load it from a container file.

LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem)

Note

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

Create an enterprise-protected file in a specified storage item (such as a folder), and load it from a container file.

LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption)

Note

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

Create an enterprise-protected file in a specified storage item (such as a folder), and load it from a container file.

LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile) LoadFileFromContainerAsync(IStorageFile)

Note

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

Create an enterprise-protected file, and load it from a container file.

public : static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile)
static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile) const;
public static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile)
Public Shared Function LoadFileFromContainerAsync(containerFile As IStorageFile) As IAsyncOperation(Of ProtectedContainerImportResult)
Windows.Security.EnterpriseData.FileProtectionManager.loadFileFromContainerAsync(containerFile).done( /* Your success and error handlers */ );

Parameters

containerFile
IStorageFile IStorageFile IStorageFile

The enterprise protected file to be created and loaded.

Returns

When the call to this method completes successfully, it returns a ProtectedContainerImportResult object representing the newly created protected file.

Additional features and requirements

Capabilities
enterpriseDataPolicy
See also

LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem) LoadFileFromContainerAsync(IStorageFile, IStorageItem)

Note

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

Create an enterprise-protected file in a specified storage item (such as a folder), and load it from a container file.

public : static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target)
static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target) const;
public static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target)
Public Shared Function LoadFileFromContainerAsync(containerFile As IStorageFile, target As IStorageItem) As IAsyncOperation(Of ProtectedContainerImportResult)
Windows.Security.EnterpriseData.FileProtectionManager.loadFileFromContainerAsync(containerFile, target).done( /* Your success and error handlers */ );

Parameters

containerFile
IStorageFile IStorageFile IStorageFile

The enterprise protected file to be created and loaded.

target
IStorageItem IStorageItem IStorageItem

The storage item into which to create the enterprise protected file.

Returns

When the call to this method completes successfully, it returns a ProtectedContainerImportResult object representing the newly created protected file.

Additional features and requirements

Capabilities
enterpriseDataPolicy
See also

LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption) LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption)

Note

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

Create an enterprise-protected file in a specified storage item (such as a folder), and load it from a container file.

public : static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target, NameCollisionOption collisionOption)
static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target, NameCollisionOption collisionOption) const;
public static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target, NameCollisionOption collisionOption)
Public Shared Function LoadFileFromContainerAsync(containerFile As IStorageFile, target As IStorageItem, collisionOption As NameCollisionOption) As IAsyncOperation(Of ProtectedContainerImportResult)
Windows.Security.EnterpriseData.FileProtectionManager.loadFileFromContainerAsync(containerFile, target, collisionOption).done( /* Your success and error handlers */ );

Parameters

containerFile
IStorageFile IStorageFile IStorageFile

The enterprise protected file to be created and loaded.

target
IStorageItem IStorageItem IStorageItem

The storage item into which to create the enterprise protected file.

collisionOption
NameCollisionOption NameCollisionOption NameCollisionOption

The enum value that determines how Windows responds if the created file has the same name as an existing item in the container's location.

Returns

When the call to this method completes successfully, it returns a ProtectedContainerImportResult object representing the newly created protected file.

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)
See also