Assembly: VsWebSite.Interop (in vswebsite.interop.dll)
[GuidAttribute("477BFD8A-5FD5-434F-981B-2FD3C145B473")] public interface WebSiteProperties
/** @attribute GuidAttribute("477BFD8A-5FD5-434F-981B-2FD3C145B473") */ public interface WebSiteProperties
The Visual Studio general automation model provides thecollection, 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 aobject, additional properties are available in the class when you cast a Project object to a VSWebSite object.
The following code example shows how to read theproperty, 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: