uap5:MediaSource
指定其公開的媒體來源和應用程式服務。
元素階層
<uap5:MediaSource>
Syntax
<uap5:MediaSource
DisplayName = 'An optional string with a value 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.'
AppServiceName = '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.' >
<!-- Child elements -->
uap5:SupportedFileTypes
uap5:SupportedContentTypes
</uap5:MediaSource>
答案
?
選擇性 (零或一個)
Attrbutes 和元素
屬性
屬性 | 描述 | 資料類型 | 必要 | 預設值 |
---|---|---|---|---|
DisplayName | 媒體來源顯示名稱。 | 長度介於 1 到 256 個字元之間的選擇性字串。 這個字串可當地語系化。 | No | |
描述 | 媒體來源的簡短描述。 | 長度介於 1 到 2048 個字元之間的選擇性字串。 | No | |
AppServiceName | 媒體來源所公開的應用程式服務名稱。 請注意,媒體來源需要 App Service。 | 長度介於 2 到 39 個字元之間的字串,其中包含英數位元、句號 (,但第一個字元) 和虛線除外。 | Yes |
子元素
子項目 | 描述 |
---|---|
SupportedFileTypes | 包含媒體來源支援的檔案類型。 |
SupportedContentTypes | 包含媒體來源支援的媒體/內容類型。 |
父元素
父元素 | 描述 |
---|---|
uap5:Extension | 宣告應用程式的擴充點。 |
規格需求
Item | 值 |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/uap/windows10/5 |
OS 最低版本 | Windows 10版本 1709 (組建 16299) |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應