描述
在選用套件組合中定義其中一個應用程式套件或資源套件。
元素階層
- <套件組合>
-
- <OptionalBundle>
- <套件>
語法
<Package Type? = Specifies the package type as application or resource. : "resource", "application"
Version = A version string in quad notation, "Major.Minor.Build.Revision".
Architecture? = "x86" | "x64" | "arm" | "neutral"
ResourceId? = A string between 1 and 30 characters in length that consists of alpha-numeric, period, and dash characters.
FileName = A string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.
Offset? = unsignedLong
Size? = unsignedLong >
<!-- Child elements -->
Resources
答案
? 選擇性 (零或一)
{} 出現的特定範圍
屬性
| 屬性 |
描述 |
資料類型 |
必要 |
| 類型 |
在組合中定義封裝的類型。 |
指定封裝類型的字串。 這可以是:「資源」或「應用程式」 |
No |
| 版本 |
定義封裝的版本號碼。 |
四個標記法中的版本字串: |
Yes |
| 架構 |
描述封裝所包含之程式碼的架構。 包含可執行程式碼的封裝必須包含這個屬性。 |
這可以是下列其中一個值:「x86」、「x64」、「arm」、「中性」 |
No |
| ResourceId |
描述封裝中的資源類型。 |
長度介於1到30個字元之間的字串,其中包含英數位元、句號和虛線字元。 |
否 |
| FileName |
描述封裝的檔案名。 |
長度介於1到256個字元之間的字串,不能包含下列字元: < 、 > 、:、"、|、?或 *。 |
是 |
| Offset |
|
unsignedLong |
No |
| 大小 |
封裝的大小。 |
unsignedLong |
No |
子元素
| 子元素 |
描述 |
| 資源 |
宣告適用于封裝所包含之資源的語言、解析度規模和 DirectX 功能等級。 |
範例
需求
|
值 |
| Namespace |
http://schemas.microsoft.com/appx/2016/bundle |