Export (0) Print
Expand All

InPlaceHostingManager Constructor (Uri)

Creates a new instance of InPlaceHostingManager to download and install the specified browser-hosted application.

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

public InPlaceHostingManager(
	Uri deploymentManifest
)

Parameters

deploymentManifest
Type: System.Uri

A Uniform Resource Identifier (Uri) to a ClickOnce application's deployment manifest.

ExceptionCondition
PlatformNotSupportedException

InPlaceHostingManager can be used only in Windows XP or in later versions of the Windows operating system.

ArgumentNullException

Cannot pass null for the deploymentManifest argument.

ArgumentException

deploymentManifest uses a URI scheme that is not supported by ClickOnce.

This constructor is used when you want to download a Windows Presentation Foundation-based application that is hosted in a Web browser. To download Windows Forms-based applications that are deployed using ClickOnce, use the InPlaceHostingManager constructor with the launchInHostProcess parameter set to false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft