Share via


Package.VerifyContentIntegrityAsync 方法

定义

确保包在加载之前未被修改或篡改。

public:
 virtual IAsyncOperation<bool> ^ VerifyContentIntegrityAsync() = VerifyContentIntegrityAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> VerifyContentIntegrityAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> VerifyContentIntegrityAsync();
function verifyContentIntegrityAsync()
Public Function VerifyContentIntegrityAsync () As IAsyncOperation(Of Boolean)

返回

true - 包尚未修改;否则 为 false

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

此函数仅验证包的内容是否已修改。 它不会验证包的状态、来源等。

适用于