Share via


ProtectionPolicyManager.IsFileProtectionRequiredForNewFileAsync 메서드

정의

참고

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<bool> ^ IsFileProtectionRequiredForNewFileAsync(IStorageFolder ^ parentFolder, Platform::String ^ identity, Platform::String ^ desiredName);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> IsFileProtectionRequiredForNewFileAsync(IStorageFolder const& parentFolder, winrt::hstring const& identity, winrt::hstring const& desiredName);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> IsFileProtectionRequiredForNewFileAsync(IStorageFolder parentFolder, string identity, string desiredName);
function isFileProtectionRequiredForNewFileAsync(parentFolder, identity, desiredName)
Public Shared Function IsFileProtectionRequiredForNewFileAsync (parentFolder As IStorageFolder, identity As String, desiredName As String) As IAsyncOperation(Of Boolean)

매개 변수

parentFolder
IStorageFolder

보호할지 여부를 알고 싶은 파일이 들어 있는 폴더입니다.

identity
String

Platform::String

winrt::hstring

엔터프라이즈 ID입니다.

중요

이 속성의 현재 구현에 버그가 있으므로 enterprise ID를 desiredName 매개 변수에 전달하세요.

desiredName
String

Platform::String

winrt::hstring

파일을 제공하려는 이름입니다.

중요

이 속성의 현재 구현에 버그가 있으므로 ID 매개 변수 에 이 이름을 전달하세요.

반환

true 이면 이 폴더의 파일을 보호해야 합니다. 그렇지 않으면 false입니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows Desktop Extension SDK (10.0.15063.0에서 도입되었습니다.)
Windows Mobile Extension SDK (10.0.15063.0에서 도입되었습니다.)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (v4.0에서 도입되었습니다.)

설명

IsFileProtectionRequiredAsync 메서드의 설명 섹션을 참조하세요.

적용 대상