VSWebSite.EnsureServerRunning Method
Starts the ASP.NET Development Server, if necessary, and returns the URL for the Web site.
Namespace: VsWebSite
Assembly: VsWebSite.Interop (in VsWebSite.Interop.dll)
Syntax
'Declaration
Function EnsureServerRunning As String
'Usage
Dim instance As VSWebSite
Dim returnValue As String
returnValue = instance.EnsureServerRunning()
string EnsureServerRunning()
String^ EnsureServerRunning()
function EnsureServerRunning() : String
Return Value
Type: System.String
The URL for the Web site.
Remarks
In a development environment, a Web site project can run under the ASP.NET Development Server or under IIS (either locally or remotely). The EnsureServerRunning method returns the URL for the site. If the site is running from the ASP.NET Development Server, the server is started, if necessary, and the port number is returned as part of the URL in the format http://localhost:port/.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.