Export (0) Print
Expand All

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

The WebSiteProperties type exposes the following members.

  NameDescription
Public property__idInfrastructure. This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public propertyBrowseURLGets or sets the URL for running the Web site.
Public propertyCurrentWebsiteLanguageGets or sets the name of the current code language for the Web site project.
Public propertyEnableASPXDebuggingGets or sets whether to enable debugging for .aspx files when invoking the debugger for the Web site project.
Public propertyEnableFxCopGets or sets whether to enable Code Analysis (FxCop) in the Web site project.
Public propertyEnableNTLMAuthenticationGets or sets whether the ASP.NET Development Server uses NTLM authentication.
Public propertyEnableSQLServerDebuggingGets or sets whether to also invoke SQL debugging when invoking the debugger for the Web site project.
Public propertyEnableUnmanagedDebuggingGets or sets whether to also invoke native code debugging when invoking the debugger for the Web site.
Public propertyEnableVsWebServerGets or sets whether to use the ASP.NET Development Server for running file system Web site projects.
Public propertyEnableVsWebServerDynamicPortGets or sets whether the ASP.NET Development Server uses a dynamic port for access.
Public propertyExtenderProvides internal-only access to Web site properties.
Public propertyExtenderCATIDProvides internal-only access to project properties.
Public propertyExtenderNamesProvides internal-only access to project properties.
Public propertyFullPathThe 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 propertyFxCopRuleAssembliesGets 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 propertyFxCopRulesGets 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 propertyOpenedURLGets the URL used to open the Web site project.
Public propertyProjectDirtyGets a value indicating whether the Web site project has changed since it was last opened.
Public propertyStartActionGets or sets the type of action to take when debugging the Web site.
Public propertyStartArgumentsGets or sets a string containing the arguments to use when starting the Web site.
Public propertyStartPageGets or sets the name of the page to use when starting the Web site.
Public propertyStartProgramGets or sets the path and file name of an executable file to run when starting the Web site.
Public propertyStartURLGets or sets the starting URL for the Web site.
Public propertyStartWorkingDirectoryGets the physical starting directory for the application represented by the specified Web site.
Public propertyVsWebServerPortGets or sets the current port number for the ASP.NET Development Server.
Public propertyWebSiteTypeGets a value indicating the type of the specified Web site.
Top

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"
Show:
© 2014 Microsoft