DataProtectionManager.GetStreamProtectionInfoAsync(IInputStream) 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 la coucher du soleil 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’un flux protégé d’entreprise.

public:
 static IAsyncOperation<DataProtectionInfo ^> ^ GetStreamProtectionInfoAsync(IInputStream ^ protectedStream);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<DataProtectionInfo> GetStreamProtectionInfoAsync(IInputStream const& protectedStream);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<DataProtectionInfo> GetStreamProtectionInfoAsync(IInputStream protectedStream);
function getStreamProtectionInfoAsync(protectedStream)
Public Shared Function GetStreamProtectionInfoAsync (protectedStream As IInputStream) As IAsyncOperation(Of DataProtectionInfo)

Paramètres

protectedStream
IInputStream

Flux pour lequel la protection status est interrogée.

Retours

Lorsque l’appel à cette méthode se termine correctement, il retourne un objet DataProtectionInfo qui contient les status du flux.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
enterpriseDataPolicy

S’applique à

Voir aussi