Share via


DataProtectionManager.ProtectAsync(IBuffer, String) 메서드

정의

참고

2022년 7월부터 Microsoft는 WIP(Windows Information Protection) 및 WIP를 지원하는 API를 더 이상 사용하지 않습니다. Microsoft는 지원되는 Windows 버전에서 WIP를 계속 지원합니다. 새 버전의 Windows에는 WIP에 대한 새로운 기능이 포함되지 않으며 이후 버전의 Windows에서는 지원되지 않습니다. 자세한 내용은 Windows Information Protection 일몰 발표를 참조하세요.

데이터 보호 요구 사항에 따라 Microsoft Purview Information ProtectionMicrosoft 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

적용 대상

추가 정보