uap:AutoPlayDevice (Windows 10)
Declares an app extensibility point of type windows.autoPlayDevice. The app provides the specified AutoPlay device actions.
Element hierarchy
<uap:AutoPlayDevice>
Syntax
<uap:AutoPlayDevice>
<!-- Child elements -->
uap:LaunchAction{1,1000}
</uap:AutoPlayDevice>
Key
{}
specific range of occurrences
Attributes and elements
Attributes
None.
Child elements
Child element | Description |
---|---|
uap:LaunchAction (in type: CT_AutoPlayDevice) | Describes an AutoPlay device action. |
Parent elements
Parent element | Description |
---|---|
uap:Extension | Declares an extensibility point for the app. |
Remarks
When a device that is not volume-based is connected to a computer, the system raises an AutoPlay device event. This extensibility point enables your app to be listed as an AutoPlay choice for one or more AutoPlay device events. Because these devices are not volume-based, the system provides the app with device information rather than a file folder.
Examples
<uap:Extension
Category="windows.autoPlayDevice">
<uap:AutoPlayDevice>
<uap:LaunchAction
Verb="startDeviceApp"
ActionDisplayName="Start my device app"
DeviceEvent="CustomDeviceEvent"/>
</uap:AutoPlayDevice>
</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) |