共用方式為


OptionalBundle

描述

定義與主要套件組合相關的選用配套。 選用套件組合包含適用于主要應用程式套件或套件組合的額外套件。

元素階層

<套件組合>
<OptionalBundle>

語法

<OptionalBundle Name      = A string between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters.
                Publisher = A string between 1 and 8192 characters in length that fits the regular expression  of a distinguished name : "(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")))*". Further, semantic validation ensures that the string is compliant with CertNameToStr Windows API implementation of X.500 rules.
                Version?  = A version string in quad notation, "Major.Minor.Build.Revision".
                FileName? = A string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *. >

    <!-- Child elements -->
    Package{1,10000}
</OptionalBundle>

答案

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

屬性

屬性 描述 資料類型 必要
Name

描述套件組合的內容。 Name屬性會區分大小寫。

長度介於3到50個字元之間的字串,由英數位元、句號和虛線字元所組成。 Yes
Publisher

描述套件組合之發行者的相關資訊。

介於1到8192個字元之間的字串,長度符合辨別名稱的正則運算式: " (CN |L | O |OU |E |C | S |街道 |T |G |I | SN |DC | SERIALNUMBER |描述 |郵遞區號 |POBox |電話 |X21Address | dnQualifier | (OID\. (0 |[1-9][0-9] * ) ( \. (0 |[1-9][0-9] * ) ) +) ) = ( ( [^,+ = " <> #;]) + |」。* ") (, ( (CN |L | O |OU |E |C | S |街道 |T |G |I | SN |DC | SERIALNUMBER |描述 |郵遞區號 |POBox |電話 |X21Address | dnQualifier | (OID\. (0 |[1-9][0-9] * ) ( \. (0 |[1-9][0-9] * ) ) +) ) = ( ( [^,+ = " <> #;]) + |」。* ") ) ) *"。 此外,語意驗證可確保字串符合 CertNameToStr Windows API 實作為500規則的規範。 Yes
版本

組合的版本號碼。

四個標記法中的版本字串:
FileName

套件組合的檔案名。

長度介於1到256個字元之間的字串,不能包含下列字元: < 、 > 、:、"、|、?或 *。 No

子元素

子元素 描述
套件 在選用套件組合中定義其中一個應用程式套件或資源套件。

備註

範例

需求

Namespace http://schemas.microsoft.com/appx/2016/bundle