Share via


VSWebSite Interface

Definition

Provides properties and methods for a Web site project.

public interface class VSWebSite
[System.Runtime.InteropServices.Guid("70758CA4-91F8-46AD-80A7-73BC21BAE68B")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface VSWebSite
[<System.Runtime.InteropServices.Guid("70758CA4-91F8-46AD-80A7-73BC21BAE68B")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type VSWebSite = interface
Public Interface VSWebSite
Attributes

Properties

CodeFolders

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

DTE

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

Project

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

References

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

TemplatePath

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

URL

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

UserTemplatePath

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

VSWebSiteEvents

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

WebReferences

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

WebServices

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

Methods

AddFromTemplate(String, String, String, String, Boolean, String, String)

Creates a new ProjectItem in the Web site project.

EnsureServerRunning()

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

GetUniqueFilename(String, String, String)

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

PreCompileWeb(String, Boolean)

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

Refresh()

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

WaitUntilReady()

Blocks all method calls until background processes have finished executing.

Applies to