Share via


ProtectionPolicyManager.IsFileProtectionRequiredAsync 메서드

정의

참고

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

매개 변수

target
IStorageItem

보호할지 여부를 알고자 하는 파일입니다.

identity
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에서 도입되었습니다.)

설명

코드는 exe, dll 및 기타 빌드 아티팩트와 같이 암호화할 필요가 없는 파일을 암호화하지 않도록 이 메서드를 호출할 수 있습니다. 이렇게 하면 컴퓨터의 다른 사용자가 해당 파일에 액세스할 수 없게 될 위험이 낮아지고 파일을 불필요하게 암호화하는 데 드는 성능 비용이 줄어듭니다.

적용 대상