WebSiteProperties Interface

 

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

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

[GuidAttribute("477BFD8A-5FD5-434F-981B-2FD3C145B473")]
public interface WebSiteProperties

NameDescription
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_pubpropertyBrowseURL

Gets or sets the URL for running the Web site.

System_CAPS_pubpropertyCurrentWebsiteLanguage

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

System_CAPS_pubpropertyEnableASPXDebugging

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

System_CAPS_pubpropertyEnableFxCop

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

System_CAPS_pubpropertyEnableNTLMAuthentication

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

System_CAPS_pubpropertyEnableSQLServerDebugging

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

System_CAPS_pubpropertyEnableUnmanagedDebugging

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

System_CAPS_pubpropertyEnableVsWebServer

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

System_CAPS_pubpropertyEnableVsWebServerDynamicPort

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

System_CAPS_pubpropertyExtender[String]

Provides internal-only access to Web site properties.

System_CAPS_pubpropertyExtenderCATID

Provides internal-only access to project properties.

System_CAPS_pubpropertyExtenderNames

Provides internal-only access to project properties.

System_CAPS_pubpropertyFullPath

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_pubpropertyFxCopRuleAssemblies

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_pubpropertyFxCopRules

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_pubpropertyOpenedURL

Gets the URL used to open the Web site project.

System_CAPS_pubpropertyProjectDirty

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

System_CAPS_pubpropertyStartAction

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

System_CAPS_pubpropertyStartArguments

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

System_CAPS_pubpropertyStartPage

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

System_CAPS_pubpropertyStartProgram

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

System_CAPS_pubpropertyStartURL

Gets or sets the starting URL for the Web site.

System_CAPS_pubpropertyStartWorkingDirectory

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

System_CAPS_pubpropertyVsWebServerPort

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

System_CAPS_pubpropertyWebSiteType

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

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.

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"
Return to top
Show: