DataProtectionManager.ProtectStreamAsync Methode

Definition

Hinweis

Ab Juli 2022 veraltet Microsoft Windows Information Protection (WIP) und die APIs, die WIP unterstützen. Microsoft unterstützt WEITERHIN WIP für unterstützte Versionen von Windows. Neue Versionen von Windows enthalten keine neuen Funktionen für WIP und werden in zukünftigen Versionen von Windows nicht unterstützt. Weitere Informationen finden Sie unter Ankündigung des Sonnenuntergangs von Windows Information Protection.

Für Ihre Datenschutzanforderungen empfiehlt Microsoft, Microsoft Purview Information Protection und Microsoft Purview Data Loss Prevention zu verwenden. Purview vereinfacht die Konfiguration und bietet erweiterte Funktionen.

Schützen Sie einen Datenstrom in einer Unternehmensidentität.

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)

Parameter

unprotectedStream
IInputStream

Der ungeschützte Eingabedatenstrom.

identity
String

Platform::String

winrt::hstring

Die Unternehmensidentität. Dies ist eine E-Mail-Adresse oder Domäne, die verwaltet wird. Ihre App sollte IsIdentityManaged verwenden, um zu bestätigen, dass eine E-Mail-Adresse oder Domäne verwaltet wird.

protectedStream
IOutputStream

Der geschützte Ausgabedatenstrom.

Gibt zurück

Wenn der Aufruf dieser Methode erfolgreich abgeschlossen wurde, wird ein DataProtectionInfo-Objekt zurückgegeben, das die status des geschützten Datenstroms enthält.

Attribute

Windows-Anforderungen

App-Funktionen
enterpriseDataPolicy

Gilt für:

Weitere Informationen