Share via


DataProtectionManager.GetStreamProtectionInfoAsync(IInputStream) Metodo

Definizione

Nota

A partire da luglio 2022, Microsoft deprecato Windows Information Protection (WIP) e le API che supportano WIP. Microsoft continuerà a supportare WIP nelle versioni supportate di Windows. Le nuove versioni di Windows non includeranno nuove funzionalità per WIP e non saranno supportate nelle versioni future di Windows. Per altre informazioni, vedere Annuncio del tramonto di Windows Information Protection.

Per le esigenze di protezione dei dati, Microsoft consiglia di usare Microsoft Purview Information Protection e Prevenzione della perdita dei dati Microsoft Purview. Purview semplifica la configurazione e offre un set avanzato di funzionalità.

Ottenere lo stato di un flusso protetto dall'organizzazione.

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)

Parametri

protectedStream
IInputStream

Flusso per il quale viene eseguito una query sullo stato di protezione.

Restituisce

Al termine della chiamata a questo metodo, restituisce un oggetto DataProtectionInfo contenente lo stato del flusso.

Attributi

Requisiti Windows

Funzionalità dell'app
enterpriseDataPolicy

Si applica a

Vedi anche