MBAE 棄用通知
Important
從 Windows 10 版本 1803 開始,MBAE 應用程式體驗會由MO UWP 應用程式取代。 如需MO UWP 應用程式的詳細資訊,請參閱 UWP行動寬頻應用程式。
Locale 元素會指定服務中繼資料套件的地區設定。 服務中繼資料套件可以指定單一或多個地區設定。 To use multiple locales, you must set the MultipleLocale element to true.
Usage
<Locale
default = "xs:boolean">
text
</Locale>
Attributes
| Attribute | 類型 | Required | Description |
|---|---|---|---|
default |
xs:boolean |
Yes |
必須為 true (1) 或 false (0)。 如果預設屬性設定為 true,作業系統會使用此裝置中繼資料套件作為電腦目前地區設定的預設值。 |
Child elements
沒有子專案。
Parent elements
| Element | Description |
|---|---|
The MetadataKey element specifies the attributes of the device metadata package. 這些包括下列各項:
|
XSD
<xs:element name="Locale" type="tns:LocaleType" />
<xs:complexType name="LocaleType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="default" type="xs:boolean" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Remarks
Locale 元素可以是 <語言>-<區域> (例如 EN-US) 或 <語言> (例如 EN)。 如果已設定「語言」>,則<套件會套用至所有<「語言」>地區設定。 例如,EN 適用於 EN-US 和 EN-BR。
To specify the metadata package as the default for the current locale of the computer, set the default attribute to true (1).
Note
Only one metadata package for a service should set the default attribute to true (1). 否則,作業系統會隨機選取服務的中繼資料套件。
當作業系統選取要顯示的服務中繼資料套件時,它會以下列方式使用 Locale 元素:
作業系統會擷取系統偏好的語言和區域。 這通常是在 Windows 安裝程式期間設定。
If the Locale element of a service metadata package matches the system preferred language and region, the operating system selects the package for the service and uses the icon and ServiceProvider value (from ServiceInfo.xml) that matches that language and region.
If the services metadata package does not have a Locale element that matches the system preferred language, the operating system will apply the language neutral icon and ServiceProvider value (from ServiceInfo.xml) that is stored in the root of the service metadata package.
Locale 元素是必要的。