DataProtectionManager.ProtectStreamAsync メソッド

定義

Note

2022 年 7 月以降、Microsoft は Windows Information Protection (WIP) と WIP をサポートする API を非推奨にしています。 Microsoft は、サポートされているバージョンの Windows で WIP を引き続きサポートします。 Windows の新しいバージョンには WIP の新機能は含まれません。また、今後のバージョンの Windows ではサポートされません。 詳細については、「Windows Information Protectionの終了を発表する」を参照してください。

データ保護のニーズに合わせて、Microsoft Purview 情報保護Microsoft Purview データ損失防止を使用することをお勧めします。 Purview を使用すると、構成のセットアップが簡略化され、高度な機能セットが提供されます。

データのストリームをエンタープライズ ID に保護します。

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)

パラメーター

unprotectedStream
IInputStream

入力、保護されていないストリーム。

identity
String

Platform::String

winrt::hstring

エンタープライズ ID。 これは、管理されているメール アドレスまたはドメインです。 アプリでは 、IsIdentityManaged を使用して、メール アドレスまたはドメインが管理されていることを確認する必要があります。

protectedStream
IOutputStream

出力、保護されたストリーム。

戻り値

このメソッドの呼び出しが正常に完了すると、保護されたストリームの状態を含む DataProtectionInfo オブジェクトが返されます。

属性

Windows の要件

アプリの機能
enterpriseDataPolicy

適用対象

こちらもご覧ください