LaunchAction
Réduire la table des matières
Développer la table des matières

LaunchAction (in type: CT_AutoPlayDevice)

Describes an AutoPlay device action.

Hiérarchie d’éléments

<Package>
<Applications>
<Application>
<Extensions>
<Extension>
<AutoPlayDevice>
<LaunchAction>

Syntaxe

<LaunchAction Verb              = A string between 1 and 64 characters in length that consists of alphanumeric, period, dash, and space characters only.
              ActionDisplayName = A string between 1 and 256 characters in length.
              DeviceEvent       = A string between 1 and 255 characters in length. Backward slashes ('\') are not allowed. />

Attributes and Elements

Attributes

AttributeDescriptionData typeRequiredDefault value
ActionDisplayName

The name displayed to the user in the AutoPlay flyout for the handler.

This string is localizable. For more info, see Localizing the package manifest.

A string between 1 and 256 characters in length.Yes
DeviceEvent

The name of a device-related event that the extensibility point handles. For more info, see Remarks.

A string between 1 and 255 characters in length. Backward slashes ('\') are not allowed.Yes
Verb

A unique identifier that is passed to the app when it is launched. The app can use this string to determine which AutoPlay handler triggered its launch. It is unique per application in the package and is case sensitive.

A string between 1 and 64 characters in length that consists of alphanumeric, period, dash, and space characters only.Yes

 

Child Elements

None.

Parent Elements

Parent ElementDescription
AutoPlayDevice

Declares an app extensibility point of type windows.autoPlayDevice. The app provides the specified AutoPlay device actions.

 

Éléments apparentés

Les éléments suivants portent le même nom que celui-ci, mais ils ont un contenu ou des attributs différents :

Remarques

ContentEvent can be a custom event defined for the device. For WPD devices, ContentEvent can be one of the following well-known events:

  • WPD\AudioSource
  • WPD\ImageSource
  • WPD\VideoSource

Exemples


<Extension Category="windows.autoPlayDevice">
  <AutoPlayContent>
    <LaunchAction Verb="import" ActionDisplayName="Import" ContentEvent="WPD\ImageSource"/>
  </AutoPlayContent>
</Extension>

Configuration requise

Espace de noms

http://schemas.microsoft.com/appx/2010/manifest

 

 

Afficher:
© 2017 Microsoft