Compartir a través de


VsWebSite Namespace

The VsWebSite namespace provides objects and members to automate management tasks for Web site projects.

Visual Studio provides a UI for managing several kinds of projects, which includes Web site projects. You can use classes in the VsWebSite namespace to automate management tasks for Web site projects, such as by using macros or Visual Studio add-ins.

Classes

  Class Description
Public class _dispAssemblyReferencesEvents_SinkHelper Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public class _dispWebReferencesEvents_SinkHelper Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public class _dispWebServicesEvents_SinkHelper Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public class _dispWebSiteMiscEvents_SinkHelper Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public class AssemblyReferencesEventsClass Represents the events for the References property of a VSWebSite object. Use the AssemblyReferencesEvents object obtained from the AssemblyReferencesEvents property to access the functionality of this class. Do not instantiate from this class.
Public class PrjBrowseObjectCATID Specifies the category ID (CATID) for a project object.
Public class PrjCATID Specifies the category ID (CATID) for projects and project items of Web sites.
Public class PrjKind Specifies the kind of Web project.
Public class WebReferencesEventsClass Represents the events for the WebReferences property of a VSWebSite. Use the WebReferencesEvents object obtained from the WebReferencesEvents property to access the functionality of this class. Do not instantiate from this class.
Public class WebServicesEventsClass Represents the events for the WebServices property of a VSWebSite object. Use the WebServicesEvents object obtained from the WebServicesEvents property to access the functionality of this class. Do not instantiate from this class.
Public class WebSiteMiscEventsClass Represents miscellaneous events for a VSWebSite. Use the WebSiteMiscEvents object obtained from the WebSiteMiscEvents property to access the functionality of this class. Do not instantiate from this class.

Interfaces

  Interface Description
Public interface _AssemblyReferencesEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispAssemblyReferencesEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispAssemblyReferencesEvents_Event Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispWebReferencesEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispWebReferencesEvents_Event Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispWebServicesEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispWebServicesEvents_Event Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispWebSiteMiscEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _dispWebSiteMiscEvents_Event Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _WebReferencesEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _WebServicesEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface _WebSiteMiscEvents Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public interface AssemblyReference Represents an assembly reference used by the Web site.
Public interface AssemblyReferences Provides access to the collection of references used in the Web site project.
Public interface AssemblyReferencesEvents Represents the events for the References property of a VSWebSite object. Use this class to access the functionality provided by AssemblyReferencesEventsClass.
Public interface CodeFolder Represents the App_Code folder, or a first-level child of the App_Code folder that is configured as a code folder.
Public interface CodeFolders Represents a collection of CodeFolder objects, where each item represents either the App_Code folder or one of its first-level child folders configured as a code folder.
Public interface RelatedFiles Represents a collection of related files where each item represents a file.
Public interface VSWebPackage Defines a Web site package or service.
Public interface VSWebProjectItem Provides a project item with Web site-specific functionality.
Public interface VSWebSite Provides properties and methods for a Web site project.
Public interface VSWebSiteEvents Provides access to events collections in the Web site project.
Public interface WebFileProperties Specifies the properties that are supported by files within a Web site.
Public interface WebFolderProperties Specifies the properties of a Web site folder.
Public interface WebReference Represents a Web reference that is consumed by the Web site.
Public interface WebReferences Provides access to all Web references consumed by a Web site project.
Public interface WebReferencesEvents Represents the events for the WebReferences property of a VSWebSite. Use this object to access the functionality provided by WebReferencesEventsClass.
Public interface WebService Represents a Web service implemented by this Web site project, as represented by the .asmx file generated by Visual Studio when the Web site reference was added to the project.
Public interface WebServices Represents a collection of WebService objects.
Public interface WebServicesEvents Provides access to events that are raised by adding, deleting, or changing Web service references in a Web site project. Use this class to access the functionality provided by WebServicesEventsClass.
Public interface WebSiteMiscEvents Represents the events for a VSWebSite object. Use this class to access the functionality provided by WebSiteMiscEventsClass.
Public interface WebSiteProperties The properties supported by a Web site project in Visual Studio.
Public interface WebSiteProperties2 Represents the properties that are supported by a Web site project in Visual Studio.

Delegates

  Delegate Description
Public delegate _dispAssemblyReferencesEvents_AssemblyReferenceAddedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispAssemblyReferencesEvents_AssemblyReferenceRemovedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebReferencesEvents_WebReferenceAddedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebReferencesEvents_WebReferenceChangedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebReferencesEvents_WebReferenceRemovedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebServicesEvents_WebServiceAddedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebServicesEvents_WebServiceChangedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebServicesEvents_WebServiceRemovedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebServicesEvents_WebServiceRenamedEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebSiteMiscEvents_OnAfterFolderRefreshEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public delegate _dispWebSiteMiscEvents_OnBeforeFolderRefreshEventHandler Infrastructure. This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Enumerations

  Enumeration Description
Public enumeration AssemblyReferenceType Specifies an AssemblyReference object.
Public enumeration OpenWebsiteOptions Specifies how the Web site can be opened.
Public enumeration webFolderType Specifies the type of Web folder.
Public enumeration webStartAction Specifies how the Web application is started when the user runs the Web site in Visual Studio.
Public enumeration webType Specifies how the Web site was opened.

See Also

Reference

VSWebSite

EnvDTE

WebSiteProperties

Other Resources

Automation and Extensibility Reference

Referencing Automation Assemblies and the DTE2 Object

Visual Studio Macros

Creating Add-ins and Wizards