ProtectionPolicyManager.RequestAccessToFilesForAppAsync ProtectionPolicyManager.RequestAccessToFilesForAppAsync ProtectionPolicyManager.RequestAccessToFilesForAppAsync ProtectionPolicyManager.RequestAccessToFilesForAppAsync ProtectionPolicyManager.RequestAccessToFilesForAppAsync Method

Definition

Overloads

RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo)

Requests access to enterprise-protected content for a specific app.

RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

Requests access to enterprise-protected content for a specific app.

RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo)

Requests access to enterprise-protected content for a specific app.

public : static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForAppAsync(IIterable<IStorageItem> sourceItemList, Platform::String appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo)
static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForAppAsync(IIterable<IStorageItem> sourceItemList, winrt::hstring appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo) const;
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForAppAsync(IEnumerable<IStorageItem> sourceItemList, String appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo)
Public Shared Function RequestAccessToFilesForAppAsync(sourceItemList As IEnumerable(Of IStorageItem), appPackageFamilyName As String, auditInfo As ProtectionPolicyAuditInfo) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)
Windows.Security.EnterpriseData.ProtectionPolicyManager.requestAccessToFilesForAppAsync(sourceItemList, appPackageFamilyName, auditInfo).done( /* Your success and error handlers */ );

Parameters

sourceItemList
IEnumerable<IStorageItem> IEnumerable<IStorageItem> IEnumerable<IStorageItem>

An array of files to that you want to grant access to.

appPackageFamilyName
String String String

The package name of the app that you want to grant permission to.

Returns

Additional features and requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0) Windows Mobile Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced v4)

RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForAppAsync(IIterable<IStorageItem>, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

Requests access to enterprise-protected content for a specific app.

public : static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForAppAsync(IIterable<IStorageItem> sourceItemList, Platform::String appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo, Platform::String messageFromApp, ProtectionPolicyRequestAccessBehavior behavior)
static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForAppAsync(IIterable<IStorageItem> sourceItemList, winrt::hstring appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo, winrt::hstring messageFromApp, ProtectionPolicyRequestAccessBehavior behavior) const;
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForAppAsync(IEnumerable<IStorageItem> sourceItemList, String appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo, String messageFromApp, ProtectionPolicyRequestAccessBehavior behavior)
Public Shared Function RequestAccessToFilesForAppAsync(sourceItemList As IEnumerable(Of IStorageItem), appPackageFamilyName As String, auditInfo As ProtectionPolicyAuditInfo, messageFromApp As String, behavior As ProtectionPolicyRequestAccessBehavior) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)
Windows.Security.EnterpriseData.ProtectionPolicyManager.requestAccessToFilesForAppAsync(sourceItemList, appPackageFamilyName, auditInfo, messageFromApp, behavior).done( /* Your success and error handlers */ );

Parameters

sourceItemList
IEnumerable<IStorageItem> IEnumerable<IStorageItem> IEnumerable<IStorageItem>

An array of files to that you want to grant access to.

appPackageFamilyName
String String String

The package name of the app that you want to grant the permission to.

messageFromApp
String String String

A message that will be displayed in the consent dialog box so that the user can make a consent decision.

behavior
ProtectionPolicyRequestAccessBehavior ProtectionPolicyRequestAccessBehavior ProtectionPolicyRequestAccessBehavior

A constant that defines how you would like to override default policy behavior.

Returns

Additional features and requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0) Windows Mobile Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced v4)