Share via


FileProtectionManager.ProtectAsync(IStorageItem, 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로 보호합니다. 그런 다음 앱은 표준 API를 사용하여 파일에서 읽거나 쓸 수 있습니다.

public:
 static IAsyncOperation<FileProtectionInfo ^> ^ ProtectAsync(IStorageItem ^ target, Platform::String ^ identity);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<FileProtectionInfo> ProtectAsync(IStorageItem const& target, winrt::hstring const& identity);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FileProtectionInfo> ProtectAsync(IStorageItem target, string identity);
function protectAsync(target, identity)
Public Shared Function ProtectAsync (target As IStorageItem, identity As String) As IAsyncOperation(Of FileProtectionInfo)

매개 변수

target
IStorageItem

보호할 파일입니다.

identity
String

Platform::String

winrt::hstring

엔터프라이즈 ID입니다. 관리되는 전자 메일 주소 또는 도메인입니다. Id를 사용하여 파일을 보호하기 전에 ProtectionPolicyManager.IsIdentityManaged 를 사용하여 전자 메일 주소 또는 도메인이 관리되고 있는지 확인합니다.

반환

이 메서드에 대한 호출이 성공적으로 완료되면 새로 보호된 파일의 상태 포함하는 FileProtectionInfo 개체를 반환합니다.

특성

Windows 요구 사항

앱 기능
enterpriseDataPolicy

적용 대상

추가 정보