共用方式為


IVsProjectServerHost Interface

Definition

Enables a project to start or stop its hosted server.

public interface class IVsProjectServerHost
public interface class IVsProjectServerHost
__interface IVsProjectServerHost
[System.Runtime.InteropServices.Guid("C044F284-CA0B-41F9-A4C0-E2B650234F30")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsProjectServerHost
[System.Runtime.InteropServices.Guid("C044F284-CA0B-41F9-A4C0-E2B650234F30")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsProjectServerHost
[<System.Runtime.InteropServices.Guid("C044F284-CA0B-41F9-A4C0-E2B650234F30")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsProjectServerHost = interface
[<System.Runtime.InteropServices.Guid("C044F284-CA0B-41F9-A4C0-E2B650234F30")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsProjectServerHost = interface
Public Interface IVsProjectServerHost
Attributes

Remarks

This interface should be implemented by a project system that hosts a server (such as a Web Site project that hosts a Web Server). It enables a third party to programmatically ask a project to start/stop its hosted server.

This interface is optional and is retrieved using QueryInterface from the IVsHierarchy interface of a project.

Methods

GetServerUrl(String)

Gets the URL of the hosted server.

IsServerRunning(Int32)

Determines whether the hosted server is running.

StartServer(String, UInt32)

Creates a process for a hosted server.

StopServer()

Stops a hosted server

Applies to