ProtectionPolicyManager.RequestAccessToFilesForProcessAsync ProtectionPolicyManager.RequestAccessToFilesForProcessAsync ProtectionPolicyManager.RequestAccessToFilesForProcessAsync ProtectionPolicyManager.RequestAccessToFilesForProcessAsync ProtectionPolicyManager.RequestAccessToFilesForProcessAsync Method

Definition

Overloads

RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo)

Requests access to enterprise-protected content for a process of an app.

RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

Requests access to enterprise-protected content for a process of an app.

RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo)

Requests access to enterprise-protected content for a process of an app.

public : static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForProcessAsync(IIterable<IStorageItem> sourceItemList, unsigned int processId, ProtectionPolicyAuditInfo auditInfo)
static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForProcessAsync(IIterable<IStorageItem> sourceItemList, uint32_t processId, ProtectionPolicyAuditInfo auditInfo) const;
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForProcessAsync(IEnumerable<IStorageItem> sourceItemList, UInt32 processId, ProtectionPolicyAuditInfo auditInfo)
Public Shared Function RequestAccessToFilesForProcessAsync(sourceItemList As IEnumerable(Of IStorageItem), processId As UInt32, auditInfo As ProtectionPolicyAuditInfo) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)
Windows.Security.EnterpriseData.ProtectionPolicyManager.requestAccessToFilesForProcessAsync(sourceItemList, processId, 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.

processId
UInt32 UInt32 UInt32

The process id of the process that you want to grant the 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)

RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior) RequestAccessToFilesForProcessAsync(IIterable<IStorageItem>, UInt32, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

Requests access to enterprise-protected content for a process of an app.

public : static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForProcessAsync(IIterable<IStorageItem> sourceItemList, unsigned int processId, ProtectionPolicyAuditInfo auditInfo, Platform::String messageFromApp, ProtectionPolicyRequestAccessBehavior behavior)
static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForProcessAsync(IIterable<IStorageItem> sourceItemList, uint32_t processId, ProtectionPolicyAuditInfo auditInfo, winrt::hstring messageFromApp, ProtectionPolicyRequestAccessBehavior behavior) const;
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessToFilesForProcessAsync(IEnumerable<IStorageItem> sourceItemList, UInt32 processId, ProtectionPolicyAuditInfo auditInfo, String messageFromApp, ProtectionPolicyRequestAccessBehavior behavior)
Public Shared Function RequestAccessToFilesForProcessAsync(sourceItemList As IEnumerable(Of IStorageItem), processId As UInt32, auditInfo As ProtectionPolicyAuditInfo, messageFromApp As String, behavior As ProtectionPolicyRequestAccessBehavior) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)
Windows.Security.EnterpriseData.ProtectionPolicyManager.requestAccessToFilesForProcessAsync(sourceItemList, processId, 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.

processId
UInt32 UInt32 UInt32

The process id of the process 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)

Remarks

Use this method to temporarily grant access of a protected file to a process that can only access unprotected files.