mobile:Extension (Windows 10)

アプリの拡張ポイントを宣言します。

要素の階層

<パッケージ>

    <アプリケーション>

         <Application>

              <拡張機能>

                   <mobile:Extension>

構文

<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>

キー

? 省略可能 (0 または 1)

属性と要素

属性

属性 説明 データ型 必須 既定値
カテゴリ アプリ拡張ポイントの種類。 windows.aowAppwindows.mobileMultiScreenPropertieswindows.communicationBlockingProvider、または windows.phoneCallOriginProvider のいずれかの値を持つ文字列。 Yes
[実行可能ファイル] 既定の起動実行可能ファイル。 1 から 256 文字の長さの.exe値を持つ省略可能な文字列。末尾は でなければならず、、"|?または *を含<>:めることはできません。 拡張機能の既定の実行可能ファイルを指定します。 指定しない場合は、アプリに対して定義されている実行可能ファイルが使用されます。 指定した場合は、EntryPoint プロパティも使用されます。 その EntryPoint プロパティが指定されていない場合は、アプリに対して定義されている EntryPoint が使用されます。 いいえ
EntryPoint アクティブ化可能なクラス ID。 拡張機能を処理するタスクを表す、1 ~ 256 文字の値を持つ省略可能な文字列。 これは、通常、Windows ランタイムの型の完全な名前空間修飾名です。 EntryPoint が指定されていない場合は、アプリに対して定義されている EntryPoint が代わりに使用されます。 いいえ
RuntimeType ランタイム プロバイダー。 この属性は、通常、アプリにフレームワークが混在している場合に使用されます。 ピリオドで開始または終了できない、または次の文字を含むことができない長さが 1 ~ 255 文字の省略可能な文字列: 、、、、、、、、?、または *|\/":>< いいえ
ResourceGroup リソース管理のために拡張機能のアクティブ化をグループ化するために使用できるタグ (CPU やメモリなど)。 ResourceGroup に設定できる値は自由形式で柔軟です。 「Application@ResourceGroup」を参照してください。 1 ~ 255 文字の長さの値を持つオプションの英数字文字列。 文字で始まる必要があります。 いいえ
StartPage 拡張ポイントを処理する Web ページです。 1 から 256 文字の長さの値を持つ省略可能な文字列(、":>|、、?、または *) を含<めることはできません。 いいえ

子要素

子要素 説明
mobile:AowApp windows.aowApp 型のアプリ拡張ポイントを宣言します。
mobile:MobileMultiScreenProperties windows 型のアプリ拡張ポイントを宣言 します。MobileMultiScreenProperties

親要素

親要素 説明
拡張機能 (種類: CT_ApplicationExtensions) アプリの 1 つ以上の拡張ポイントを定義します。

次の例は、モバイル アプリが接続されたディスプレイに表示されないようにする方法を示しています。 このマークアップにより、接続されているディスプレイの [スタート] メニューでアプリのタイルが無効になります。

<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
Minimum OS Version Windows 10 バージョン 1511 (ビルド 10586)