DataProtectionManager.ProtectAsync(IBuffer, String) メソッド

定義

注意

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<BufferProtectUnprotectResult ^> ^ ProtectAsync(IBuffer ^ data, Platform::String ^ identity);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<BufferProtectUnprotectResult> ProtectAsync(IBuffer const& data, winrt::hstring const& identity);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<BufferProtectUnprotectResult> ProtectAsync(IBuffer data, string identity);
function protectAsync(data, identity)
Public Shared Function ProtectAsync (data As IBuffer, identity As String) As IAsyncOperation(Of BufferProtectUnprotectResult)

パラメーター

data
IBuffer

保護するバッファー。

identity
String

Platform::String

winrt::hstring

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

戻り値

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

属性

Windows の要件

アプリの機能
enterpriseDataPolicy

適用対象

こちらもご覧ください