Compartir a través de


IVsProjectServerHost Interface

Enables a project to start or stop its hosted server.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

Syntax

'Declaration
<GuidAttribute("C044F284-CA0B-41F9-A4C0-E2B650234F30")> _
<InterfaceTypeAttribute()> _
Public Interface IVsProjectServerHost
[GuidAttribute("C044F284-CA0B-41F9-A4C0-E2B650234F30")]
[InterfaceTypeAttribute()]
public interface IVsProjectServerHost
[GuidAttribute(L"C044F284-CA0B-41F9-A4C0-E2B650234F30")]
[InterfaceTypeAttribute()]
public interface class IVsProjectServerHost
[<GuidAttribute("C044F284-CA0B-41F9-A4C0-E2B650234F30")>]
[<InterfaceTypeAttribute()>]
type IVsProjectServerHost =  interface end
public interface IVsProjectServerHost

The IVsProjectServerHost type exposes the following members.

Methods

  Name Description
Public method GetServerUrl Gets the URL of the hosted server.
Public method IsServerRunning Determines whether the hosted server is running.
Public method StartServer Creates a process for a hosted server.
Public method StopServer Stops a hosted server

Top

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace