Dela via


DataProtectionManager.GetProtectionInfoAsync(IBuffer) Method

Definition

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.

Get the status of an enterprise protected buffer.

public:
 static IAsyncOperation<DataProtectionInfo ^> ^ GetProtectionInfoAsync(IBuffer ^ protectedData);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<DataProtectionInfo> GetProtectionInfoAsync(IBuffer const& protectedData);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<DataProtectionInfo> GetProtectionInfoAsync(IBuffer protectedData);
function getProtectionInfoAsync(protectedData)
Public Shared Function GetProtectionInfoAsync (protectedData As IBuffer) As IAsyncOperation(Of DataProtectionInfo)

Parameters

protectedData
IBuffer

The buffer for which protection status is being queried.

Returns

When the call to this method completes successfully, it returns a DataProtectionInfo object that contains the status of the buffer.

Attributes

Windows requirements

App capabilities
enterpriseDataPolicy

Applies to

See also