FileProtectionManager.CreateProtectedAndOpenAsync 메서드

정의

참고

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

데이터 보호 요구 사항에 따라 Microsoft Purview Information ProtectionMicrosoft Purview 데이터 손실 방지 사용하는 것이 좋습니다. Purview는 구성 설정을 간소화하고 고급 기능 집합을 제공합니다.

엔터프라이즈로 보호되는 파일을 만듭니다.

public:
 static IAsyncOperation<ProtectedFileCreateResult ^> ^ CreateProtectedAndOpenAsync(IStorageFolder ^ parentFolder, Platform::String ^ desiredName, Platform::String ^ identity, CreationCollisionOption collisionOption);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ProtectedFileCreateResult> CreateProtectedAndOpenAsync(IStorageFolder const& parentFolder, winrt::hstring const& desiredName, winrt::hstring const& identity, CreationCollisionOption const& collisionOption);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectedFileCreateResult> CreateProtectedAndOpenAsync(IStorageFolder parentFolder, string desiredName, string identity, CreationCollisionOption collisionOption);
function createProtectedAndOpenAsync(parentFolder, desiredName, identity, collisionOption)
Public Shared Function CreateProtectedAndOpenAsync (parentFolder As IStorageFolder, desiredName As String, identity As String, collisionOption As CreationCollisionOption) As IAsyncOperation(Of ProtectedFileCreateResult)

매개 변수

parentFolder
IStorageFolder

엔터프라이즈로 보호된 파일을 만들 폴더입니다.

desiredName
String

Platform::String

winrt::hstring

새 엔터프라이즈 보호 파일의 원하는 이름입니다.

identity
String

Platform::String

winrt::hstring

엔터프라이즈 ID입니다. 관리되는 전자 메일 주소 또는 도메인입니다. 앱 은 IsIdentityManaged 를 사용하여 이메일 주소 또는 도메인이 관리되고 있는지 확인해야 합니다.

collisionOption
CreationCollisionOption

desiredName이 이미 있는 경우 수행할 작업을 지정하는 CreationCollisionOption 값입니다.

반환

이 메서드에 대한 호출이 성공적으로 완료되면 새로 만든 보호된 파일을 나타내는 ProtectedFileCreateResult 개체를 반환합니다.

특성

Windows 요구 사항

앱 기능
enterpriseDataPolicy

적용 대상

추가 정보