windows.fileTypeAssociation型のアプリ拡張ポイントを宣言します。 ファイルの種類の関連付けは、指定した種類のファイルを処理するためにアプリが登録されていることを示します。
要素の階層
<Package>
└─ <Applications>
└─ <Application>
└─ <Extensions>
└─ <uap:Extension>
└─ <uap:FileTypeAssociation>
構文
<uap:FileTypeAssociation
Name = 'A required string between 1 and 64 characters in length.'
DesiredView = 'An optional string that can have one of the following values: "default", "useLess", "useHalf", "useMore", or "useMinimum".'
desktop2:UseUrl = 'An optional boolean value.'
desktop2:AllowSilentDefaultTakeOver = 'An optional boolean value.'
desktop5:ThumbnailTypeOverlay = 'An optional string between 1 and 256 characters in length that ends with `.jpg`, `.png`, or `.jpeg` that can't contain these characters: `<`, `>`, `:`, `%`, `"`, `|`, `?`, or `*`. In this string, the `/` and `\` characters can't be the first or last characters. Also, the string can contain `/` or `\` but not both.'
uap8:Launch = 'An optional string that can have one of the following values: "file", or "placeholderFile".' >
<!-- Child elements -->
uap:DisplayName?
uap:Logo?
uap:Logo?
uap:Logo?
uap:InfoTip?
uap:EditFlags?
uap:SupportedFileTypes
uap:FileTypeAssociationSupportedVerbsChoice?
uap:KindMap?
uap:MigrationProgIds?
uap:ThumbnailHandler?
uap:DesktopPreviewHandler?
uap:DesktopPropertyHandler?
uap:OleClass?
uap:PropertyLists?
uap:ProgId?
uap:ProgId?
uap:IconHandler?
</uap:FileTypeAssociation>
鍵
? 省略可能 (ゼロまたは 1)
属性
| 特性 |
説明 |
データの種類 |
必須 |
既定値 |
|
名前 |
ファイルの種類の関連付けの名前。 この名前を使用して、ファイルの種類を整理およびグループ化できます。 名前は、スペースのない小文字である必要があります。 |
長さが 1 ~ 64 文字の文字列。 |
イエス |
|
|
DesiredView |
アプリの起動時に使用する画面領域の量。 このビュー モードの基本設定は、要求された値のみです。 指定した優先サイズは、Windowsによって受け入れることが保証されていないため、推奨される最小サイズより小さいサイズまたは推奨される最大サイズより大きいサイズに決して入らないことに依存するコードを記述しないでください。 |
省略可能な文字列。 default、 useLess、 useHalf、 useMore、 useMinimum のいずれかの値を指定できます。 |
いいえ |
|
|
desktop2:UseUrl |
true に設定した場合は、アプリケーションがコマンド ラインでファイル名ではなく URL を受け入れることを指定します。
Applications Web ブラウザーやメディア プレーヤーなど、インターネットから直接ドキュメントを開くことができる場合は、この値を使用する必要があります。
ShellExecuteExアプリケーションを起動し、この値を false に設定すると、既定の動作ShellExecuteEx、ドキュメントをローカル ファイルにダウンロードし、ローカル コピーでハンドラーを呼び出します。 |
省略可能なブール値。 |
いいえ |
|
|
desktop2:AllowSilentDefaultTakeOver |
true に設定すると、アプリは "Open With" リストに表示されますが、ファイルの種類の既定のアプリにはなりません。 |
省略可能なブール値。 |
いいえ |
|
|
desktop5:ThumbnailTypeOverlay |
サムネイル オーバーレイの画像リソース。 |
<、>、:、%、"、|、?、または*の文字を含めることができない、.jpg、.png、または.jpegで終わる、1 ~ 256 文字の省略可能な文字列。 この文字列では、 / 文字と \ 文字を最初または最後の文字にすることはできません。 また、文字列には / または \ を含めることができますが、両方を含めることもできます。 |
いいえ |
|
|
uap8:Launch |
|
file、placeholderFile のいずれかの値を持つ省略可能な文字列。 |
いいえ |
|
子要素
親要素
Requirements
| 品目 |
価値 |
|
名前空間 |
http://schemas.microsoft.com/appx/manifest/uap/windows10 |
|
desktop2 |
http://schemas.microsoft.com/appx/manifest/desktop/windows10/2 |
|
desktop5 |
http://schemas.microsoft.com/appx/manifest/desktop/windows10/5 |
|
uap8 |
http://schemas.microsoft.com/appx/manifest/uap/windows10/8 |
|
最小 OS バージョン |
Windows 10 バージョン 1511 (ビルド 10586) |
Examples