FileProtectionManager.LoadFileFromContainerAsync Method
Definition
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.
Overloads
LoadFileFromContainerAsync(IStorageFile) |
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. Create an enterprise-protected file, and load it from a container file. |
LoadFileFromContainerAsync(IStorageFile, 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. 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) |
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. Create an enterprise-protected file in a specified storage item (such as a folder), and load it from a container file. |
LoadFileFromContainerAsync(IStorageFile)
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.
Create an enterprise-protected file, and load it from a container file.
public:
static IAsyncOperation<ProtectedContainerImportResult ^> ^ LoadFileFromContainerAsync(IStorageFile ^ containerFile);
/// [Windows.Foundation.Metadata.Overload("LoadFileFromContainerAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile const& containerFile);
[Windows.Foundation.Metadata.Overload("LoadFileFromContainerAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile);
function loadFileFromContainerAsync(containerFile)
Public Shared Function LoadFileFromContainerAsync (containerFile As IStorageFile) As IAsyncOperation(Of ProtectedContainerImportResult)
Parameters
- containerFile
- 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.
- Attributes
Windows requirements
App capabilities |
enterpriseDataPolicy
|
See also
Applies to
LoadFileFromContainerAsync(IStorageFile, 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.
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);
/// [Windows.Foundation.Metadata.Overload("LoadFileFromContainerWithTargetAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile const& containerFile, IStorageItem const& target);
[Windows.Foundation.Metadata.Overload("LoadFileFromContainerWithTargetAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target);
function loadFileFromContainerAsync(containerFile, target)
Public Shared Function LoadFileFromContainerAsync (containerFile As IStorageFile, target As IStorageItem) As IAsyncOperation(Of ProtectedContainerImportResult)
Parameters
- containerFile
- IStorageFile
The enterprise protected file to be created and loaded.
- target
- 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.
- Attributes
Windows requirements
App capabilities |
enterpriseDataPolicy
|
See also
Applies to
LoadFileFromContainerAsync(IStorageFile, IStorageItem, NameCollisionOption)
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.
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);
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("LoadFileFromContainerWithTargetAndNameCollisionOptionAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile const& containerFile, IStorageItem const& target, NameCollisionOption const& collisionOption);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("LoadFileFromContainerWithTargetAndNameCollisionOptionAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectedContainerImportResult> LoadFileFromContainerAsync(IStorageFile containerFile, IStorageItem target, NameCollisionOption collisionOption);
function loadFileFromContainerAsync(containerFile, target, collisionOption)
Public Shared Function LoadFileFromContainerAsync (containerFile As IStorageFile, target As IStorageItem, collisionOption As NameCollisionOption) As IAsyncOperation(Of ProtectedContainerImportResult)
Parameters
- containerFile
- IStorageFile
The enterprise protected file to be created and loaded.
- target
- IStorageItem
The storage item into which to create the enterprise protected file.
- collisionOption
- 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.
- Attributes
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10586.0)
Windows Mobile Extension SDK (introduced in 10.0.10586.0) |
API contract |
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v2.0)
|