WebSiteProperties Interface

The properties supported by a Web site project in Visual Studio.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
<GuidAttribute("477BFD8A-5FD5-434F-981B-2FD3C145B473")> _
Public Interface WebSiteProperties
[GuidAttribute("477BFD8A-5FD5-434F-981B-2FD3C145B473")]
public interface WebSiteProperties
[GuidAttribute(L"477BFD8A-5FD5-434F-981B-2FD3C145B473")]
public interface class WebSiteProperties
[<GuidAttribute("477BFD8A-5FD5-434F-981B-2FD3C145B473")>]
type WebSiteProperties =  interface end
public interface WebSiteProperties

The WebSiteProperties type exposes the following members.

Properties

  Name Description
Public property __id Infrastructure. This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public property BrowseURL Gets or sets the URL for running the Web site.
Public property CurrentWebsiteLanguage Gets or sets the name of the current code language for the Web site project.
Public property EnableASPXDebugging Gets or sets whether to enable debugging for .aspx files when invoking the debugger for the Web site project.
Public property EnableFxCop Gets or sets whether to enable Code Analysis (FxCop) in the Web site project.
Public property EnableNTLMAuthentication Gets or sets whether the ASP.NET Development Server uses NTLM authentication.
Public property EnableSQLServerDebugging Gets or sets whether to also invoke SQL debugging when invoking the debugger for the Web site project.
Public property EnableUnmanagedDebugging Gets or sets whether to also invoke native code debugging when invoking the debugger for the Web site.
Public property EnableVsWebServer Gets or sets whether to use the ASP.NET Development Server for running file system Web site projects.
Public property EnableVsWebServerDynamicPort Gets or sets whether the ASP.NET Development Server uses a dynamic port for access.
Public property Extender Provides internal-only access to Web site properties.
Public property ExtenderCATID Provides internal-only access to project properties.
Public property ExtenderNames Provides internal-only access to project properties.
Public property FullPath The physical path for the Web site project. For remote Web sites, this is the path to the temporary local cache location for the Web site.
Public property FxCopRuleAssemblies Gets or sets a collection of assemblies containing Code Analysis (FxCop) rules. This property supports Code Analysis and is not intended to be used in your code.
Public property FxCopRules Gets or sets the rules for diagnostic Code Analysis (FxCop). This property supports Code Analysis and is not intended to be used in your code.
Public property OpenedURL Gets the URL used to open the Web site project.
Public property ProjectDirty Gets a value indicating whether the Web site project has changed since it was last opened.
Public property StartAction Gets or sets the type of action to take when debugging the Web site.
Public property StartArguments Gets or sets a string containing the arguments to use when starting the Web site.
Public property StartPage Gets or sets the name of the page to use when starting the Web site.
Public property StartProgram Gets or sets the path and file name of an executable file to run when starting the Web site.
Public property StartURL Gets or sets the starting URL for the Web site.
Public property StartWorkingDirectory Gets the physical starting directory for the application represented by the specified Web site.
Public property VsWebServerPort Gets or sets the current port number for the ASP.NET Development Server.
Public property WebSiteType Gets a value indicating the type of the specified Web site.

Top

Remarks

The Visual Studio general automation model provides the Properties collection, which you can use to access the properties of any Visual Studio project type, including Web site projects.

Each property is available as an item in a project's Properties collection.

These properties cannot be accessed by directly casting a Properties object to a WebSiteProperties object. Instead, these properties are late-bound and must be accessed through the Properties collection by supplying the name of the property for the specific type of project.

In addition to the properties available with the Properties collection of a Project object, additional properties are available in the VSWebSite class when you cast a Project object to a VSWebSite object.

Examples

The following code example shows how to read the BrowseURL property, which is a typical late-bound property:

Dim proj As EnvDTE.Project = DTE.Solution.Projects.Item(1)
Dim str As String = proj.Properties.Item("BrowseURL").Value

The following code example shows how to set the BrowseURL property:

Dim proj As EnvDTE.Project = DTE.Solution.Projects.Item(1)
proj.Properties.Item("BrowseURL").Value = "http://newHost/newFile"

See Also

Reference

VsWebSite Namespace

DTE

Project

Properties

Property

VSWebSite

Other Resources

Automation and Extensibility Reference

Referencing Automation Assemblies and the DTE2 Object

Visual Studio Macros

Creating Add-ins and Wizards