InPlaceHostingManager Constructor (Uri)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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


Type: System.Uri

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

Exception Condition

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


Cannot pass null for the deploymentManifest argument.


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
Available since 2.0
Return to top