Share via


uap17:PackageExtension

宣告 windows.packageExtension 類型的應用程式擴充點。

Description

宣告 windows.packageExtension類型的應用程式擴充點。 這個專案指出套件想要取用和/或主機的延伸模組類別。

元素階層

<封裝>
<擴充功能>
<uap17:Extension>
<uap17:PackageExtension>

Syntax

<uap17:PackageExtension     Name = A string with a value between 2 and 255 characters in length that consists of alphanumeric characters, periods (except for the first character), and dashes only.
    Id = A string with a value between 2 and 39 characters in length that consists of alphanumeric characters, periods (except for the first character), and dashes only.
    PublicFolder? = A string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.
    DisplayName = A string between 1 and 256 characters in length. This string is localizable.
    Description? = An optional string with a value between 1 and 2048 characters in length.
>
<!-- Child elements -->
  Properties{0,unbounded}
</uap17:PackageExtension>

答案

? 選擇性 (零或一個) {} 特定出現的範圍

屬性

屬性 描述 資料類型 必要
名稱 應用程式想要取用和/或主機的擴充功能類型。 長度介於 2 到 255 個字元之間的字串,其中包含英數位元、句號 (,但第一個字元) 除外,且僅虛線。 Yes
識別碼 如果有多個進入點,則主機應用程式存取延伸模組類別實例的進入點。 長度介於 2 到 39 個字元之間的字串,其中包含英數位元、句號 (,但第一個字元) 和虛線除外。 Yes
公用資料夾 實例宣告為主機可透過訊息代理程式讀取檔案之位置的資料夾。 下列其中一個值:長度介於 1 到 256 個字元之間的字串,不能包含下列字元: < 、、 > :、、「、,, ?, 或 *。
DisplayName 應用程式延伸模組的易記名稱,可向使用者顯示。 長度介於 1 到 256 個字元之間的字串。 這個字串可當地語系化。
描述 應用程式的描述。 長度介於 1 到 2048 個字元之間的選擇性字串。 No

子元素

元素 Description
屬性 包含不透明 XML,代表僅由作業系統儲存且未讀取的自訂擴充功能特定資訊。 此資訊只會由主機應用程式讀取。

規格需求

前置詞
uap17 http://schemas.microsoft.com/appx/manifest/uap/windows10/17