Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 2.08 KB

protectionpolicymanager_requestaccesstofilesforprocessasync_1957401037.md

File metadata and controls

43 lines (26 loc) · 2.08 KB
-api-id -api-type
M:Windows.Security.EnterpriseData.ProtectionPolicyManager.RequestAccessToFilesForProcessAsync(Windows.Foundation.Collections.IIterable{Windows.Storage.IStorageItem},System.UInt32,Windows.Security.EnterpriseData.ProtectionPolicyAuditInfo)
winrt method

Windows.Security.EnterpriseData.ProtectionPolicyManager.RequestAccessToFilesForProcessAsync

-description

Note

Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.

For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.

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

-parameters

-param sourceItemList

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

-param processId

The process id of the process that you want to grant the permission to.

-param auditInfo

An audit info object; an instance of ProtectionPolicyAuditInfo.

-returns

A value of the ProtectionPolicyEvaluationResult enumeration that is the result of the query.

-remarks

-see-also

-examples