Share via


DataProtectionManager.ProtectStreamAsync 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.

Protéger un flux de données vers une identité d’entreprise.

public:
 static IAsyncOperation<DataProtectionInfo ^> ^ ProtectStreamAsync(IInputStream ^ unprotectedStream, Platform::String ^ identity, IOutputStream ^ protectedStream);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<DataProtectionInfo> ProtectStreamAsync(IInputStream const& unprotectedStream, winrt::hstring const& identity, IOutputStream const& protectedStream);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<DataProtectionInfo> ProtectStreamAsync(IInputStream unprotectedStream, string identity, IOutputStream protectedStream);
function protectStreamAsync(unprotectedStream, identity, protectedStream)
Public Shared Function ProtectStreamAsync (unprotectedStream As IInputStream, identity As String, protectedStream As IOutputStream) As IAsyncOperation(Of DataProtectionInfo)

Paramètres

unprotectedStream
IInputStream

Flux d’entrée non protégé.

identity
String

Platform::String

winrt::hstring

Identité d’entreprise. Il s’agit d’une adresse e-mail ou d’un domaine géré. Votre application doit utiliser IsIdentityManaged pour confirmer qu’une adresse e-mail ou un domaine est géré.

protectedStream
IOutputStream

Flux protégé de sortie.

Retours

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

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
enterpriseDataPolicy

S’applique à

Voir aussi