LaunchApplicationOnDeviceConnect

MBAE 弃用警告

重要

从 Windows 10 版本 1803 开始,MBAE 应用体验将替换为 MO UWP 应用。 有关 MO UWP 应用的详细信息,请参阅 UWP 移动宽带应用

LaunchApplicationOnDeviceConnect 元素指定一个应用,当用户插入设备时,该应用应显示为建议的自动播放操作。

用法

<LaunchApplicationOnDeviceConnect>
  child elements
</LaunchApplicationOnDeviceConnect>

Attributes

没有属性。

子元素

元素 说明

AutoplayHandler

指定当用户插入设备时应显示为建议的自动播放操作的 UWP 设备应用。

DesktopAutoplayHandler

指定在用户插入设备时应显示为建议的自动播放操作的桌面应用。

父元素

元素 说明

WindowsInfo

WindowsInfo XML 架构的父元素。

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>

备注

必须指定 UWP 设备应用或桌面应用。 如果要指定 UWP 设备应用,请使用 AutoplayHandler ;如果指定桌面应用程序,请使用 DesktopAutoplayHandler

LaunchApplicationOnDeviceConnect 元素是可选的。