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 | |
---|---|---|
__id | Infrastructure. This property supports the .NET Framework infrastructure and is not intended to be used directly from your code. | |
BrowseURL | Gets or sets the URL for running the Web site. | |
CurrentWebsiteLanguage | Gets or sets the name of the current code language for the Web site project. | |
EnableASPXDebugging | Gets or sets whether to enable debugging for .aspx files when invoking the debugger for the Web site project. | |
EnableFxCop | Gets or sets whether to enable Code Analysis (FxCop) in the Web site project. | |
EnableNTLMAuthentication | Gets or sets whether the ASP.NET Development Server uses NTLM authentication. | |
EnableSQLServerDebugging | Gets or sets whether to also invoke SQL debugging when invoking the debugger for the Web site project. | |
EnableUnmanagedDebugging | Gets or sets whether to also invoke native code debugging when invoking the debugger for the Web site. | |
EnableVsWebServer | Gets or sets whether to use the ASP.NET Development Server for running file system Web site projects. | |
EnableVsWebServerDynamicPort | Gets or sets whether the ASP.NET Development Server uses a dynamic port for access. | |
Extender | Provides internal-only access to Web site properties. | |
ExtenderCATID | Provides internal-only access to project properties. | |
ExtenderNames | Provides internal-only access to project properties. | |
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. | |
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. | |
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. | |
OpenedURL | Gets the URL used to open the Web site project. | |
ProjectDirty | Gets a value indicating whether the Web site project has changed since it was last opened. | |
StartAction | Gets or sets the type of action to take when debugging the Web site. | |
StartArguments | Gets or sets a string containing the arguments to use when starting the Web site. | |
StartPage | Gets or sets the name of the page to use when starting the Web site. | |
StartProgram | Gets or sets the path and file name of an executable file to run when starting the Web site. | |
StartURL | Gets or sets the starting URL for the Web site. | |
StartWorkingDirectory | Gets the physical starting directory for the application represented by the specified Web site. | |
VsWebServerPort | Gets or sets the current port number for the ASP.NET Development Server. | |
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
Other Resources
Automation and Extensibility Reference