DataProtectionManager.GetStreamProtectionInfoAsync(IInputStream) 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.

Rufen Sie die status eines unternehmensgeschützten Datenstroms ab.

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)

Parameter

protectedStream
IInputStream

Der Stream, für den schutz status abgefragt wird.

Gibt zurück

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

Attribute

Windows-Anforderungen

App-Funktionen
enterpriseDataPolicy

Gilt für:

Weitere Informationen