WebSiteProperties Interface

 

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

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

Syntax

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

Properties

Name Description
System_CAPS_pubproperty __id

This API supports the product infrastructure and is not intended to be used directly from your code. This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.

System_CAPS_pubproperty BrowseURL

Gets or sets the URL for running the Web site.

System_CAPS_pubproperty CurrentWebsiteLanguage

Gets or sets the name of the current code language for the Web site project.

System_CAPS_pubproperty EnableASPXDebugging

Gets or sets whether to enable debugging for .aspx files when invoking the debugger for the Web site project.

System_CAPS_pubproperty EnableFxCop

Gets or sets whether to enable Code Analysis (FxCop) in the Web site project.

System_CAPS_pubproperty EnableNTLMAuthentication

Gets or sets whether the ASP.NET Development Server uses NTLM authentication.

System_CAPS_pubproperty EnableSQLServerDebugging

Gets or sets whether to also invoke SQL debugging when invoking the debugger for the Web site project.

System_CAPS_pubproperty EnableUnmanagedDebugging

Gets or sets whether to also invoke native code debugging when invoking the debugger for the Web site.

System_CAPS_pubproperty EnableVsWebServer

Gets or sets whether to use the ASP.NET Development Server for running file system Web site projects.

System_CAPS_pubproperty EnableVsWebServerDynamicPort

Gets or sets whether the ASP.NET Development Server uses a dynamic port for access.

System_CAPS_pubproperty Extender[String]

Provides internal-only access to Web site properties.

System_CAPS_pubproperty ExtenderCATID

Provides internal-only access to project properties.

System_CAPS_pubproperty ExtenderNames

Provides internal-only access to project properties.

System_CAPS_pubproperty 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.

System_CAPS_pubproperty 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.

System_CAPS_pubproperty 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.

System_CAPS_pubproperty OpenedURL

Gets the URL used to open the Web site project.

System_CAPS_pubproperty ProjectDirty

Gets a value indicating whether the Web site project has changed since it was last opened.

System_CAPS_pubproperty StartAction

Gets or sets the type of action to take when debugging the Web site.

System_CAPS_pubproperty StartArguments

Gets or sets a string containing the arguments to use when starting the Web site.

System_CAPS_pubproperty StartPage

Gets or sets the name of the page to use when starting the Web site.

System_CAPS_pubproperty StartProgram

Gets or sets the path and file name of an executable file to run when starting the Web site.

System_CAPS_pubproperty StartURL

Gets or sets the starting URL for the Web site.

System_CAPS_pubproperty StartWorkingDirectory

Gets the physical starting directory for the application represented by the specified Web site.

System_CAPS_pubproperty VsWebServerPort

Gets or sets the current port number for the ASP.NET Development Server.

System_CAPS_pubproperty WebSiteType

Gets a value indicating the type of the specified Web site.

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 = "https://newHost/newFile"

See Also

DTE
Project
Properties
Property
VSWebSite
VsWebSite Namespace
Automation and Extensibility Reference
Referencing Automation Assemblies and the DTE2 Object

Creating Add-ins and Wizards
d300ae97-9048-4c35-90e5-87473f0528ca

Return to top