Share via


VSWebSite Members

Include Protected Members
Include Inherited Members

Provides properties and methods for a Web site project.

The VSWebSite type exposes the following members.

Methods

 

Name

Description

Public method

AddFromTemplate

Creates a new ProjectItem in the Web site project.

Public method

EnsureServerRunning

Starts the ASP.NET Development Server, if necessary, and returns the URL for the Web site.

Public method

GetUniqueFilename

Returns a filename that is unique within the specified folder, using the specified root name and file name extension.

Public method

PreCompileWeb

Compiles the Web site and writes the compiled output to the specified folder.

Public method

Refresh

Refreshes the display to account for changes that have been made to the Web site outside of Visual Studio.

Public method

WaitUntilReady

Blocks all method calls until background processes have finished executing.

Top

Properties

 

Name

Description

Public property

CodeFolders

Gets a collection of folders that are configured as code folders in the Web site.

Public property

DTE

Gets a reference to the DTE2 object that contains this Web site project.

Public property

Project

Gets a reference to this Web site as a Project object.

Public property

References

Gets an AssemblyReferences object containing references to assemblies and projects for the current Web site.

Public property

TemplatePath

Gets the full path and name of the folder that contains templates for Web site items.

Public property

URL

Gets the URL that was used to open the Web site.

Public property

UserTemplatePath

Gets the path to the user templates folder for new project items.

Public property

VSWebSiteEvents

Gets the VSWebSiteEvents object for the Web site, which can be used to add event handlers.

Public property

WebReferences

Gets a WebReferences object containing references to the Web services consumed by the Web site.

Public property

WebServices

Gets a WebServices object containing a collection of Web services that are exposed by this Web site.

Top

See Also

Reference

VSWebSite Interface

VsWebSite Namespace