拡張機能 (パッケージ/拡張機能内) (Windows 10)

パッケージの拡張ポイントを宣言します。

要素の階層

<パッケージ>

    <拡張機能>

         <拡張子>

構文

<Extension
  Category = 'A string that can have one of the following values: "windows.activatableClass.inProcessServer", "windows.activatableClass.outOfProcessServer", "windows.activatableClass.proxyStub", "windows.certificates", "windows.publisherCacheFolders", "windows.comInterface", or "windows.loaderSearchPathOverride".'
  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.' 
  uap11:Id = 'An optional string with a value between 1 and 255 characters in length with a non-whitespace character at its beginning and end.'
  uap11:Subsystem = 'An optional string that can have one of the following values: "console" or "windows".'
  uap11:SupportsMultipleInstances = 'An optional boolean value.'
  uap11:ResourceGroup = 'An optional alphanumeric string with a value between 1 and 255 characters in length. Must begin with a letter.'
  uap11:CurrentDirectoryPath = 'An optional string that cannot contain these characters: <, >, |, ?, or *. >'
  uap11:Parameters = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  desktop7:CompatMode = 'An optional string the can have one of the following values: "classic" or "modern".'
  desktop7:Scope = 'An optional string that can have one of the following values: "machine" or "user".'>

  <!-- Child elements -->
  InProcessServer
  OutOfProcessServer
  ProxyStub
  Certificates
  PublisherCacheFolders
  com:ComInterface
  uap6:LoaderSearchPathOverride

</Extension>

属性と要素

属性

属性 説明 データ型 必須 既定値
カテゴリ パッケージ拡張ポイントの種類。 次のいずれかの値を持つ文字列: windows.activatableClass.inProcessServerwindows.activatableClass.outOfProcessServerwindows.activatableClass.proxyStubwindows.certificateswindows.publisherCacheFolderswindows.comInterface、または windows.loaderSearchPathOverride Yes
uap10:TrustLevel 拡張機能の信頼レベルを指定します。 appContainer または mediumIL のいずれかの値を指定できる省略可能な文字列。 いいえ
uap10:RuntimeBehavior 拡張機能の実行時の動作を指定します。 windowsApppackagedClassicAppwin32App のいずれかの値を指定できる省略可能な文字列。 いいえ
uap10:HostId この値 拡張機能のホスト ランタイムの ID を指定します。 長さが 1 ~ 255 文字の英数字文字列。 文字で始まる必要があります。
uap10:Parameters 拡張機能のコマンド ライン パラメーターが含まれています。 先頭と末尾に空白以外の文字を含む 1 ~ 32767 文字の長さの文字列。 いいえ
uap11:Id 拡張機能の識別子。 ID は、パッケージ内のすべての拡張機能に対して一意である必要があります。 先頭と末尾に空白以外の文字を含む、長さが 1 ~ 255 文字の省略可能な文字列。 いいえ
uap11:Subsystem この属性は基本拡張構文から継承され、com4 拡張機能には適用されません。 構文検証以外の値は無視されます。 コンソールまたはウィンドウのいずれかの値を指定できる省略可能な文字列。 いいえ
uap11:SupportsMultipleInstances インスタンスを異なるプロセスで実行するかどうかを指定します。 既定値は false です。 省略可能なブール値。 いいえ
uap11:ResourceGroup リソース管理のために拡張機能のアクティブ化をグループ化するために使用できるタグ (CPU やメモリなど)。 ResourceGroup に設定できる値は自由形式で柔軟です。 「Application@ResourceGroup」を参照してください。 1 ~ 255 文字の長さの値を持つオプションの英数字文字列。 文字で始まる必要があります。 いいえ
uap11:CurrentDirectoryPath アプリケーション プロセスの起動時の初期ディレクトリを指定します。 、または の文字を<?>|含めることができない省略可能な文字列。* > いいえ
uap11:Parameters この属性は基本拡張構文から継承され、com4 拡張機能には適用されません。 構文検証以外の値は無視されます。 1 ~ 32767 文字の長さの値を持ち、先頭と末尾に空白以外の文字を含む省略可能な文字列。 いいえ
desktop7:CompatMode この拡張機能の情報を従来の方法 (パッケージ化されていないアプリがレジストリを介して COM に型を登録するなど) で Windows に登録するか、新しいスコープの新しい方法で登録するかを指定します。 既定値は "モダン" です。 CompatMode="classic" には 、Microsoft.classicAppCompat_8wekyb3d8bbwe 機能が必要です。 省略可能な文字列 は、 クラシック または モダンのいずれかの値を持つことができます。 いいえ
desktop7:Scope 登録が、このパッケージが登録されているユーザー (ユーザー) として実行されている他のアプリケーションにのみ表示されるかどうか、またはマシン (マシン) 上のすべてのユーザーとサービスに表示されるかどうかを指定します。 既定値は "user" です。 Scope="machine" には 、Microsoft.classicAppCompatElevated_8wekyb3d8bbwe 機能が必要です。 次のいずれかの値を持つことができます省略可能な文字列: マシン または ユーザー いいえ

子要素

子要素 説明
証明書 windows.certificates 型のパッケージ拡張ポイントを宣言します。 アプリには、指定された証明書ストアの 1 つ以上の証明書が必要です。
InProcessServer windows.activatableClass.inProcessServer 型のパッケージ拡張ポイントを宣言します。 アプリは、1 つ以上のアクティブ化可能なクラスを公開するダイナミック リンク ライブラリ (.dll) を使用します。
OutOfProcessServer windows.activatableClass.outOfProcessServer 型のパッケージ拡張ポイントを宣言します。 アプリは、1 つ以上のアクティブ化可能なクラスを公開する実行可能ファイル (.exe) を使用します。
ProxyStub windows.activatableClass.proxyStub 型のパッケージ拡張ポイントを宣言します。 プロキシは、1 つ以上のインターフェイスで構成できます。
PublisherCacheFolders windows.publisherCacheFolders 型のパッケージ拡張ポイントを宣言します。 これは、パッケージが同じ発行元の他のパッケージと共有する 1 つ以上のフォルダーを指定します。
com:ComInterface windows.comInterface 型のパッケージ拡張ポイントを宣言します。
uap6:LoaderSearchPathOverride windows.loaderSearchPathOverride 型のパッケージ拡張ポイントを宣言します。

親要素

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

次の要素の名前はこれと同じですが、コンテンツまたは属性が異なります:

注釈

機能拡張ポイントは、パッケージがオペレーティング システムによって定義された方法で機能を追加できるメカニズムです。 機能拡張ポイントは、アプリがコードを実行したり、現在のパッケージのリソースを使用したりするために登録できる場所です。 特定のアプリの機能を追加するには、 Applications 要素の Application 子要素を使用します。

windows.certificates 拡張ポイントをマニフェストで複数回宣言することはできません。

こちらもご覧ください

要件

Item
Namespace http://schemas.microsoft.com/appx/manifest/foundation/windows10
Com http://schemas.microsoft.com/appx/manifest/com/windows10
uap6 http://schemas.microsoft.com/appx/manifest/uap/windows10/10