Share via


uap10:Protocol

宣告 windows.protocol 類型的應用程式擴充點。 URI 關聯表示應用程式已註冊,以使用指定的配置來處理 URI。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <uap10:Extension>

                   <\uap10:Protocol>

Syntax

<uap10:Protocol
  name = 'A string with a value between 2 and 2048 characters in length.'
  desiredView = 'A string that can have one of the following values: "default", "useLess", "useHalf", "useMore", or "useMinimum".'
  returnResults = 'An optional string that can have one of the following values: "none", "always", or "optional".'
  parameters = 'An optional string value (or set of string values between "%" characters).' >

  <!-- Child elements -->
  uap10:Logo
  uap10:DisplayName
  rescap3:MigrationProgIds
  previewappcompat:ProgId

</uap10:Protocol>

答案

? 選擇性 (零或一個)

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
名稱 媒體內容的使用者易記顯示名稱。 長度介於 2 到 2048 個字元之間的字串。 Yes
DesiredView 媒體內容的使用者易記描述。 可以具有下列其中一個值的字串:defaultuseLess、useHalfuseMoreuseMinimum No
ReturnResults 定義用來加密和解密媒體內容的主要系統。 可以具有下列其中一個值的選擇性字串: 一律選擇性 No
參數 與此媒體內容相關聯的類別識別碼。 選擇性字串值 (字元) 之間的 % 字串值集。 No

子元素

子項目 描述
標誌 封裝期間用於應用程式圖示的標誌。
DisplayName 用於應用程式的顯示名稱。
rescap3:MigrationProgIds 用於應用程式移轉的程式識別碼。
previewAppCompat:ProgId 應用程式相容性預覽所使用的程式識別碼。

父元素

父元素 描述
uap10:Extension 宣告應用程式的擴充點。

規格需求

Item
uap10 http://schemas.microsoft.com/appx/manifest/uap/windows10/10
rescap3 http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/3
previewappcompat http://schemas.microsoft.com/appx/manifest/preview/windows10/msixappcompatsupport/3
OS 最低版本 Windows 10版本 2004 (組建 19041)