uap10:Content

指出 Windows 是否會在套件的整個內容上強制執行執行時間套件完整性檢查。 如果啟用,Windows 會在偵測到遭竄改或損毀的套件之前,先執行執行時間檢查並起始套件補救和修復工作流程。

元素階層

<套件>

    <屬性>

         <uap10:PackageIntegrity>

              <uap10:Content>

Syntax

<uap10:PackageIntegrity>

  <!-- Child elements -->
  <uap10:Content
    Enforcement = 'A string that can have one of the following values: "on", "off", or "default". The value "default" currently has the same behavior as "off".' />

</uap10:PackageIntegrity>

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
強制執行 指出 Windows 是否會在套件的整個內容上強制執行執行時間套件完整性檢查。 可以具有下列其中一個值的字串: onoffdefault預設值目前的行為與off相同。 Yes 關閉

子元素

無。

父元素

父元素 描述
uap10:PackageIntegrity 指定封裝的執行時間封裝完整性檢查和補救層級。

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10/10
OS 最低版本 Windows 10版本 2004 (組建 19041)