uap:AutoPlayContent (Windows 10)

Declares an app extensibility point of type windows.autoPlayContent. The app provides the specified AutoPlay content actions.

Element hierarchy

<Package>

    <Applications>

         <Application>

              <Extensions>

                   <uap:Extension>

                        <uap:AutoPlayContent>

Syntax

<uap:AutoPlayContent>

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

</uap:AutoPlayContent>

Key

{}  specific range of occurrences

Attributes and elements

Attributes

None.

Child elements

Child element Description
uap:LaunchAction (in type: CT_AutoPlayContent) Describes an AutoPlay content action.

Parent elements

Parent element Description
uap:Extension Declares an extensibility point for the app.

Remarks

When a volume-based device is connected to a computer or a disc is inserted into a CD or DVD drive, the system raises an AutoPlay content event. This extensibility point enables your app to be listed as an AutoPlay choice for one or more AutoPlay content events.

You can use any value for the Verb attribute except, open, which is reserved.

Examples

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

See also

Tasks Auto-launching with AutoPlay

Concepts App contracts and extensions

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10
Minimum OS Version Windows 10 version 1511 (Build 10586)