ProtectionPolicyManager.IsFileProtectionRequiredForNewFileAsync(IStorageFolder, String, String) Method

Definition

Indicates whether a file needs to be protected by the enterprise identity.

public:
 static IAsyncOperation<bool> ^ IsFileProtectionRequiredForNewFileAsync(IStorageFolder ^ parentFolder, Platform::String ^ identity, Platform::String ^ desiredName);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> IsFileProtectionRequiredForNewFileAsync(IStorageFolder const& parentFolder, winrt::hstring const& identity, winrt::hstring const& desiredName);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> IsFileProtectionRequiredForNewFileAsync(IStorageFolder parentFolder, string identity, string desiredName);
function isFileProtectionRequiredForNewFileAsync(parentFolder, identity, desiredName)
Public Shared Function IsFileProtectionRequiredForNewFileAsync (parentFolder As IStorageFolder, identity As String, desiredName As String) As IAsyncOperation(Of Boolean)

Parameters

parentFolder
IStorageFolder

The folder that contains files that you want to know whether to protect.

identity
String

The enterprise identity.

Important

Due to a bug in the current implementation of this property, please pass the enterprise identity to the desiredName parameter.

desiredName
String

The name that you would like to give the file.

Important

Due to a bug in the current implementation of this property, please pass this name to the identity parameter.

Returns

IAsyncOperation<Boolean>

IAsyncOperation<bool>

true if files in this folder should be protected, otherwise false.

Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
Windows Mobile Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v4.0)

Remarks

See the remarks section of this method: IsFileProtectionRequiredAsync.

Applies to