Share via


RegisterPackageOptions.ExpectedDigests 속성

정의

RegisterPackageOptions와 연결된 URI를 해당 다이제스트 문자열과 매핑하는 사전을 가져옵니다.

public:
 property IMap<Uri ^, Platform::String ^> ^ ExpectedDigests { IMap<Uri ^, Platform::String ^> ^ get(); };
IMap<Uri, winrt::hstring const&> ExpectedDigests();
public IDictionary<System.Uri,string> ExpectedDigests { get; }
var iMap = registerPackageOptions.expectedDigests;
Public ReadOnly Property ExpectedDigests As IDictionary(Of Uri, String)

속성 값

IMap<Uri,String>

IDictionary<Uri,String>

IMap<Uri,Platform::String>

IMap<Uri,winrt::hstring>

키가 URI이고 값이 URI와 연결된 다이제스트를 나타내는 문자열인 사전입니다.

Windows 요구 사항

디바이스 패밀리
Windows 11 Insider Preview (10.0.23504.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v15.0에서 도입되었습니다.)

설명

다이제스트 문자열은 패키지 URI의 내용에 대한 해시된 표현입니다. IAppxDigestProvider::GetDigest를 호출하여 패키지 URI에 대한 다이제스트를 가져와서 ExpectedDigests에서 반환된 컬렉션에 값을 추가합니다. RegisterPackageOptions에 포함된 URI 또는 모든 URI에 대해 다이제스트를 지정할 수 있습니다. 다이제스트가 URI에 대해 지정되고 해당 URI의 콘텐츠가 다이제스트와 일치하지 않으면 배포 작업이 실패합니다. 다이제스트가 URI에 대해 지정되지 않은 경우 패키지 관리자는 다이제스트의 유효성을 검사하지 않고 진행합니다. 패키지 관리자가 읽을 필요가 없는 URI에 대해 다이제스트를 지정하면 다이제스트가 무시됩니다.

적용 대상