FileProtectionManager.CreateProtectedAndOpenAsync(IStorageFolder, String, String, CreationCollisionOption) FileProtectionManager.CreateProtectedAndOpenAsync(IStorageFolder, String, String, CreationCollisionOption) FileProtectionManager.CreateProtectedAndOpenAsync(IStorageFolder, String, String, CreationCollisionOption) FileProtectionManager.CreateProtectedAndOpenAsync(IStorageFolder, String, String, CreationCollisionOption) FileProtectionManager.CreateProtectedAndOpenAsync(IStorageFolder, String, String, CreationCollisionOption) Method

Definition

Note

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

Create an enterprise-protected file.

public : static IAsyncOperation<ProtectedFileCreateResult> CreateProtectedAndOpenAsync(IStorageFolder parentFolder, Platform::String desiredName, Platform::String identity, CreationCollisionOption collisionOption)
static IAsyncOperation<ProtectedFileCreateResult> CreateProtectedAndOpenAsync(IStorageFolder parentFolder, winrt::hstring desiredName, winrt::hstring identity, CreationCollisionOption collisionOption) const;
public static IAsyncOperation<ProtectedFileCreateResult> CreateProtectedAndOpenAsync(IStorageFolder parentFolder, String desiredName, String identity, CreationCollisionOption collisionOption)
Public Shared Function CreateProtectedAndOpenAsync(parentFolder As IStorageFolder, desiredName As String, identity As String, collisionOption As CreationCollisionOption) As IAsyncOperation(Of ProtectedFileCreateResult)
Windows.Security.EnterpriseData.FileProtectionManager.createProtectedAndOpenAsync(parentFolder, desiredName, identity, collisionOption).done( /* Your success and error handlers */ );

Parameters

parentFolder
IStorageFolder IStorageFolder IStorageFolder

The folder into which to create the enterprise protected file.

desiredName
String String String

The desired name of the new enterprise protected file.

identity
String String String

The enterprise identity. This is an email address or domain that is managed. Your app should use IsIdentityManaged to confirm that an email address or domain is managed.

collisionOption
CreationCollisionOption CreationCollisionOption CreationCollisionOption

A CreationCollisionOption value that specifies what to do if desiredName already exists.

Returns

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

Additional features and requirements

Capabilities
enterpriseDataPolicy

See also