Share via


uap4:DevicePortalProvider

定義裝置入口網站提供者以進行部署。 如需實作的詳細資訊,請參閱 撰寫 Device Portal 的自訂外掛程式

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <uap4:Extension>

                        <uap4:DevicePortalProvider>

Syntax

<uap4:DevicePortalProvider
  DisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'
  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.'
  ContentRoute = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  HandlerRoute = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.' />            

答案

? 選擇性 (零或一個)

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
DisplayName 裝置入口網站提供者的易記顯示名稱。 長度介於 1 到 256 個字元之間的字串。 這個字串可當地語系化。 Yes
AppServiceName 用來啟動裝置入口網站提供者的應用程式服務名稱。 長度介於 2 到 39 個字元之間的字串,包含英數位元、句號 (,但第一個字元) 和虛線字元除外。 Yes
ContentRoute 用來宣告 HTTP 內容的路由 (JavaScript、HTML 和 CSS) ,例如 /foo 長度介於 1 到 32767 個字元的選擇性字串,其開頭和結尾為非空白字元。 No
HandlerRoute 提供者所要求的 API 命名空間,例如 /foo/bar。 任何成功的 HTTP 要求都會傳送至提供者進行處理。 長度介於 1 到 32767 個字元的選擇性字串,其開頭和結尾為非空白字元。 No

子元素

無。

父元素

父元素 描述
uap4:Extension 宣告應用程式的擴充點。

備註

此擴充功能需要 devicePortalProvider 受限制的功能,以及 privateNetworkClientServerinternetClientServer 功能。

注意

ContentRouteHandlerRoute 不需要一起提供。

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10/4
OS 最低版本 Windows 10版本 1703 (組建 15063)