mobile:Extension (Windows 10)

宣告應用程式的擴充點。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <mobile:Extension>

Syntax

<mobile:Extension
    Category = 'A string that can have one of the following values: "windows.aowApp", "windows.mobileMultiScreenProperties", "windows.communicationBlockingProvider", or "windows.phoneCallOriginProvider".'
    Executable = 'An optional string with a value between 1 and 256 characters in length that must end with ".exe" and cannot contain these characters: <, >, :, ", |, ?, or *. It specifies the default executable for the extension. If not specified, the executable defined for the app is used.  If specified, the EntryPoint property is also used. If that EntryPoint property isnt specified, the EntryPoint defined for the app is used.'
    EntryPoint = 'An optional string with a value between 1 and 256 characters in length, representing the  task handling the extension. This is normally the fully namespace-qualified name of a Windows Runtime type. If EntryPoint is not specified, the EntryPoint defined for the app is used instead.'
    RuntimeType = 'An optional string with a value between 1 and 255 characters in length that cannot start or end with a period or contain these characters: <, >, :, ", /, \, |, ?, or *.'
    ResourceGroup = 'An optional alphanumeric string with a value between 1 and 255 characters in length. Must begin with a letter.'
    StartPage = 'An optional string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.' >

  <!-- Child elements -->
  mobile:AowApp
  mobile:MobileMultiScreenProperties?

</mobile:Extension>

答案

? 選擇性 (零或一個)

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
類別 應用程式擴充點的類型。 可具有下列其中一個值的字串: windows.aowAppwindows.mobileMultiScreenPropertieswindows.communicationBlockingProviderwindows.phoneCallOriginProvider Yes
可執行檔 預設啟動可執行檔。 長度介於 1 到 256 個字元的選擇性字串,長度必須以 .exe 結尾且不能包含下列字元: < 、、 >: 、、 "|? 、 或 * 。 它會指定延伸模組的預設可執行檔。 如果未指定,則會使用為應用程式定義的可執行檔。 如果指定,也會使用 EntryPoint 屬性。 如果未指定 EntryPoint 屬性,則會使用為應用程式定義的 EntryPoint。 No
EntryPoint 可啟用的類別識別碼。 長度介於 1 到 256 個字元之間的選擇性字串,表示處理延伸的工作。 這必須符合 Windows 執行階段類型的完整命名空間名稱。 如果未指定 EntryPoint,則會改用為應用程式定義的 EntryPoint。 No
RuntimeType 執行時間提供者。 當應用程式中有混合架構時,通常會使用這個屬性。 長度介於 1 到 255 個字元之間的選擇性字串,長度不能以句點開頭或結尾,或包含下列字元: < 、、 /:>\|"? 或 。 * No
ResourceGroup 標記,可用來將擴充功能啟用群組在一起,以供資源管理之用 (,例如 CPU 和記憶體) 。 您可以設定 ResourceGroup 的值是自由格式且有彈性。 請參閱 Application@ResourceGroup 長度介於 1 到 255 個字元之間的選擇性英數位元字串。 必須以字母開頭。 No
StartPage 處理擴充點的網頁 長度介於 1 到 256 個字元之間的選擇性字串,不能包含下列字元: < 、、 >:" 、、 |?* No

子元素

子項目 描述
mobile:AowApp 宣告 windows.aowApp類型的應用程式擴充點。
mobile:MobileMultiScreenProperties 宣告類型視窗的應用程式擴充點 。MobileMultiScreenProperties

父元素

父元素 描述
擴充功能 (類型:CT_ApplicationExtensions) 定義應用程式的一或多個擴充點。

範例

下列範例示範如何封鎖行動應用程式在連線的顯示器上顯示。 此標記會導致應用程式磚在連線的顯示器的 [開始] 功能表上停用。

<Package
    xmlns:mobile="http://schemas.microsoft.com/appx/manifest/mobile/windows10"
    IgnorableNamespaces="... mobile">
    <Applications>
        <Application>
            <Extensions>
                <mobile:Extension
                    Category="windows.mobileMultiScreenProperties">
                    <mobile:MobileMultiScreenProperties
                        RestrictToInternalScreen="true"/>
                </mobile:Extension>
            </Extensions>
        </Application>
    </Applications>
</Package>      

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/mobile/windows10
OS 最低版本 Windows 10版本 1511 (組建 10586)