desktop6:Extension (パッケージ/拡張機能内)

デスクトップ アプリケーションの機能拡張ポイントを宣言します。

要素の階層

<パッケージ>

    <拡張機能>

         <desktop6:Extension>

構文

<desktop6:Extension
  Category = 'A string that can have one of the following values: "windows.mutablePackageDirectories" or "windows.customInstall".'
  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 *.'
  StartPage = 'An optional string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
  uap10:TrustLevel = 'An optional string that can have one of the following values: "appContainer" or "mediumIL".'
  uap10:RuntimeBehavior = 'An optional string that can have one of the following values: "windowsApp", "packagedClassicApp", or "win32App".'
  uap10:HostId = 'An alphanumeric string with a value between 1 and 255 characters in length. Must begin with a letter.'
  uap10:Parameters = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.' >

  <!-- Child elements -->
  ( desktop6:MutablePackageDirectories
  | desktop6:CustomInstall )?

</desktop6:Extension>

キー

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

属性と要素

属性

属性 説明 データ型 必須 既定値
カテゴリ 拡張機能のカテゴリ。 次のいずれかの値を持つ文字列: windows.mutablePackageDirectories または windows.customInstall Yes
[実行可能ファイル] 既定の起動実行可能ファイル。 1 から 256 文字の長さの.exe値を持つ省略可能な文字列。末尾は でなければならず、、"|?または *を含<>:めることはできません。 拡張機能の既定の実行可能ファイルを指定します。 指定しない場合は、アプリに対して定義されている実行可能ファイルが使用されます。 指定した場合は、EntryPoint プロパティも使用されます。 その EntryPoint プロパティが指定されていない場合は、アプリに対して定義されている EntryPoint が使用されます。 いいえ
EntryPoint アクティブ化可能なクラス ID。 拡張機能を処理するタスクを表す、1 ~ 256 文字の値を持つ省略可能な文字列。 これは、通常、Windows ランタイムの型の完全な名前空間修飾名です。 EntryPoint が指定されていない場合は、アプリに対して定義されている EntryPoint が代わりに使用されます。 いいえ
RuntimeType ランタイム プロバイダー。 この属性は、通常、アプリにフレームワークが混在している場合に使用されます。 ピリオドで開始または終了できない、または次の文字を含むことができない長さが 1 ~ 255 文字の省略可能な文字列: 、、、、、、、、?、または *|\/":>< いいえ
StartPage 拡張ポイントを処理する Web ページです。 1 から 256 文字の長さの値を持つ省略可能な文字列(、":>|、、?、または *) を含<めることはできません。 いいえ
uap10:TrustLevel 拡張機能の信頼レベルを指定します。 appContainer または mediumIL のいずれかの値を指定できる省略可能な文字列。 いいえ
uap10:RuntimeBehavior 拡張機能の実行時の動作を指定します。 windowsApppackagedClassicAppwin32App のいずれかの値を指定できる省略可能な文字列。 いいえ
uap10:HostId 拡張機能のホスト ランタイムの ID を指定します。 長さが 1 ~ 255 文字の英数字文字列。 文字で始まる必要があります。 いいえ
uap10:Parameters 拡張機能に渡すコマンド ライン パラメーターが含まれています。 パッケージ ID を持つデスクトップ アプリでのみサポートされます。 1 ~ 32767 文字の長さの値を持ち、先頭と末尾に空白以外の文字を含む省略可能な文字列。 いいえ

子要素

子要素 説明
MutablePackageDirectories デスクトップ アプリケーションで、ユーザーがアプリケーションのインストール ファイルを変更できる 1 つ以上のフォルダーを指定できるようにします (mod をインストールするなど)。
CustomInstall デスクトップ アプリケーションで、デスクトップ アプリケーションと共にインストールされる 1 つ以上の追加のインストーラー ファイル (.exe または .msi) を指定できるようにします。 たとえば、これは、アプリケーションがサードパーティ製の再頒布可能コンポーネントをバンドルする場合に役立ちます。

親要素

親要素 説明
拡張機能 (種類: CT_PackageExtensions) パッケージの 1 つ以上の拡張ポイントを定義します。

要件

Item
名前空間 http://schemas.microsoft.com/appx/manifest/desktop/windows10/6
uap10 http://schemas.microsoft.com/appx/manifest/uap/windows10/10
Minimum OS Version Windows 10 バージョン 1903 (ビルド 18362)