This documentation is archived and is not being maintained.

DownloadApplicationCompletedEventArgs.ShortcutAppId Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the contents of an .appref-ms file that can launch this ClickOnce application.

Namespace:  System.Deployment.Application
Assembly:  System.Deployment (in System.Deployment.dll)

public string ShortcutAppId { get; }

Property Value

Type: System.String
The contents of an .appref-ms file.

This property contains the text a custom installer can write to a .appref-ms file to launch this ClickOnce application. ClickOnce creates this launch file for you when install a ClickOnce application that is available offline, except for applications that include the <customUX> element. 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. For more information, see <entryPoint> Element (ClickOnce Application) and Walkthrough: Creating a Custom Installer for a ClickOnce Application.

.NET Framework

Supported in: 4, 3.5 SP1, 3.0 SP2, 2.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.