Share via


uap:AutoPlayContent (Windows 10)

宣告 windows.autoPlayContent類型的應用程式擴充點。 應用程式會提供指定的自動播放內容動作。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <uap:Extension>

                        <uap:AutoPlayContent>

Syntax

<uap:AutoPlayContent>

  <!-- Child elements -->
  uap:LaunchAction{1,1000}

</uap:AutoPlayContent>

答案

{} 特定出現次數範圍

屬性和元素

屬性

無。

子元素

子項目 描述
uap:LaunchAction (類型:CT_AutoPlayContent) 描述自動播放內容動作。

父元素

父元素 描述
uap:Extension 宣告應用程式的擴充點。

備註

當磁片區型裝置連接到電腦或光碟插入 CD 或 DVD 磁片磁碟機時,系統會引發自動播放內容事件。 此擴充點可讓您的應用程式列為一或多個自動播放內容事件的自動播放選擇。

您可以使用 Verb 屬性的任何值,但 open除外,這是保留的。

範例

<uap:Extension
  Category="windows.autoPlayContent">
  <uap:AutoPlayContent>
    <uap:LaunchAction
      Verb="show"
      ActionDisplayName="Show Pictures"
      ContentEvent="ShowPicturesOnArrival"/>
  </uap:AutoPlayContent>
</uap:Extension>

另請參閱

使用 AutoPlay 自動啟動的工作

應用程式合約和延伸模組的概念

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10
OS 最低版本 Windows 10版本 1511 (組建 10586)