Table of contents
TOC
Collapse the table of content
Expand the table of content

LaunchApplicationOnDeviceConnect

Last Updated: 1/24/2017

The LaunchApplicationOnDeviceConnect element specifies an app that should appear as the recommended AutoPlay action when a user plugs in the device.

Usage

<LaunchApplicationOnDeviceConnect>
  child elements
</LaunchApplicationOnDeviceConnect>

Attributes

There are no attributes.

Child elements

ElementDescription

AutoplayHandler

Specifies a Windows Store device app that should appear as the recommended AutoPlay action when a user plugs in a device.

DesktopAutoplayHandler

Specifies a desktop app that should appear as the recommended AutoPlay action when a user plugs in a device.

Parent elements

ElementDescription

WindowsInfo

The parent element of the WindowsInfo XML schema.

XSD

<xs:element name="LaunchApplicationOnDeviceConnect" type ="tns:LaunchApplicationOnDeviceConnectType" />

<xs:complexType name="LaunchApplicationOnDeviceConnectType">
    <xs:choice>
      <xs:element name="AutoplayHandler" type="tns:AutoplayHandlerType" />
      <xs:element name="DesktopAutoplayHandler" type="xs:string" />
      <xs:any namespace="##other" processContents="lax" />
    </xs:choice>
  </xs:complexType>

Remarks

You must specify either a Windows Store device app or a desktop app. Use AutoplayHandler if you will specify a Windows Store device app, and use DesktopAutoplayHandler if you specify a desktop application.

The LaunchApplicationOnDeviceConnect element is optional.

Send comments about this topic to Microsoft

© 2017 Microsoft