uap:LaunchAction (uap:AutoPlayContent) (Windows 10)
描述自動播放內容動作。
元素階層
<uap:LaunchAction>
Syntax
<uap:LaunchAction
Verb = 'A string with a value between 1 and 64 characters in length that consists of alphanumeric characters, periods ("."), dashes ("-"), and spaces only.'
ActionDisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'
ContentEvent = 'A string with a value between 1 and 255 characters in length. Backward slashes ("\") are not allowed.' />
屬性和元素
屬性
子元素
無。
父元素
父元素 | 描述 |
---|---|
uap:AutoPlayContent | 宣告 windows.autoPlayContent類型的應用程式擴充點。 應用程式會提供指定的自動播放內容動作。 |
相關元素
下列元素的名稱與這個元素相同,但內容或屬性不同:
備註
ContentEvent 可以是磁片區所定義的自訂事件,或下列其中一個已知的事件:
- HandleCDBurningOnArrival
- HandleDVDBurningOnArrival
- MixedContentOnArrival
- PlayBluRayOnArrival
- PlayCDAudioOnArrival
- PlayDVDAudioOnArrival
- PlayDVDMovieOnArrival
- PlayEnhancedCDOnArrival
- PlayEnhancedDVDOnArrival
- PlayMusicFilesOnArrival
- PlaySuperVideoCDMovieOnArrival
- PlayVideoCDMovieOnArrival
- PlayVideoFilesOnArrival
- ShowPicturesOnArrival
- StorageOnArrival
- UnknownContentOnArrival
範例
<uap:Extension
Category="windows.autoPlayContent">
<uap:AutoPlayContent>
<uap:LaunchAction
Verb="open"
ActionDisplayName="Display"
ContentEvent="ShowPicturesOnArrival"/>
</uap:AutoPlayContent>
</uap:Extension>
另請參閱
規格需求
Item | 值 |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/uap/windows10 |
OS 最低版本 | Windows 10版本 1511 (組建 10586) |