DownloadApplicationCompletedEventArgs.ShortcutAppId 属性
定义
获取可启动此 ClickOnce 应用程序的 .appref-ms 文件的内容。Gets the contents of an .appref-ms file that can launch this ClickOnce application.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
property System::String ^ ShortcutAppId { System::String ^ get(); };
public string ShortcutAppId { get; }
member this.ShortcutAppId : string
Public ReadOnly Property ShortcutAppId As String
属性值
.appref-ms 文件的内容。The contents of an .appref-ms file.
注解
此属性包含自定义安装程序可向 .appref-ms-ms 文件写入以启动该 ClickOnce 应用程序的文本。This property contains the text a custom installer can write to a .appref-ms file to launch this ClickOnce application. 当安装可脱机使用的 ClickOnce 应用程序(包括元素的应用程序除外)时,ClickOnce 会为你创建此启动文件 <customUX> 。ClickOnce creates this launch file for you when install a ClickOnce application that is available offline, except for applications that include the <customUX> element. 自定义安装程序可 <customUX> 通过将此属性中的文本写入到一个 Unicode 格式的 .appref-ms 文件来创建用于启动 ClickOnce 应用程序的快捷方式。A custom installer can create a shortcut to launch a ClickOnce application that contains a <customUX> element by writing the text in this property to a new .appref-ms file in Unicode format. 有关详细信息,请参阅 < entryPoint > 元素和演练:为 ClickOnce 应用程序创建自定义安装程序。For more information, see <entryPoint> Element and Walkthrough: Creating a Custom Installer for a ClickOnce Application.