FileProtectionManager.SaveFileAsContainerAsync FileProtectionManager.SaveFileAsContainerAsync FileProtectionManager.SaveFileAsContainerAsync FileProtectionManager.SaveFileAsContainerAsync FileProtectionManager.SaveFileAsContainerAsync Method

Definition

Overloads

SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile)

Note

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

Save an enterprise-protected file as a containerized version.

SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>)

Note

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

Save an enterprise-protected file as a containerized version, and share it with a specified list of user identities.

SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile) SaveFileAsContainerAsync(IStorageFile)

Note

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

Save an enterprise-protected file as a containerized version.

public : static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile)
static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile) const;
public static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile)
Public Shared Function SaveFileAsContainerAsync(protectedFile As IStorageFile) As IAsyncOperation(Of ProtectedContainerExportResult)
Windows.Security.EnterpriseData.FileProtectionManager.saveFileAsContainerAsync(protectedFile).done( /* Your success and error handlers */ );

Parameters

protectedFile
IStorageFile IStorageFile IStorageFile

The protected source file being copied.

Returns

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

See also

SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>) SaveFileAsContainerAsync(IStorageFile, IIterable<String>)

Note

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

Save an enterprise-protected file as a containerized version, and share it with a specified list of user identities.

public : static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile, IIterable<Platform::String> sharedWithIdentities)
static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile, IIterable<winrt::hstring> sharedWithIdentities) const;
public static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile, IEnumerable<String> sharedWithIdentities)
Public Shared Function SaveFileAsContainerAsync(protectedFile As IStorageFile, sharedWithIdentities As IEnumerable(Of String)) As IAsyncOperation(Of ProtectedContainerExportResult)
Windows.Security.EnterpriseData.FileProtectionManager.saveFileAsContainerAsync(protectedFile, sharedWithIdentities).done( /* Your success and error handlers */ );

Parameters

protectedFile
IStorageFile IStorageFile IStorageFile

The protected source file being copied.

sharedWithIdentities
IEnumerable<String> IEnumerable<String> IEnumerable<String>

A collection of strings representing the user identities to share the containerized file with. For example, email recipients.

Returns

When the call to this method completes successfully, it returns a ProtectedContainerExportResult object representing the newly created container 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