Share via


DataProtectionManager.GetProtectionInfoAsync(IBuffer) Méthode

Définition

Notes

À compter de juillet 2022, Microsoft déprécie Windows Information Protection (WIP) et les API qui prennent en charge WIP. Microsoft continuera à prendre en charge WIP sur les versions prises en charge de Windows. Les nouvelles versions de Windows n’incluront pas de nouvelles fonctionnalités pour WIP et ne seront pas prises en charge dans les futures versions de Windows. Pour plus d’informations, consultez Annonce de l’extinction de Windows Information Protection.

Pour vos besoins en matière de protection des données, Microsoft vous recommande d’utiliser Protection des données Microsoft Purview et Protection contre la perte de données Microsoft Purview. Purview simplifie la configuration et fournit un ensemble avancé de fonctionnalités.

Obtenez les status d’une mémoire tampon protégée par l’entreprise.

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)

Paramètres

protectedData
IBuffer

Mémoire tampon pour laquelle la protection status est interrogée.

Retours

Lorsque l’appel à cette méthode se termine correctement, il retourne un objet DataProtectionInfo qui contient le status de la mémoire tampon.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
enterpriseDataPolicy

S’applique à

Voir aussi