We recommend using Visual Studio 2017

VSWebProjectItem Interface

Provides a project item with Web site-specific functionality.

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

public interface VSWebProjectItem

The VSWebProjectItem type exposes the following members.

Public propertyContainingProjectGets a reference to the project in the DTE instance that contains this Web service.
Public propertyDTEGets a DTE2 object that contains a reference to the Web site.
Public propertyProjectItemGets the project item.
Public propertyRelatedFilesGets the related files for the Web project item.

Public methodLoadLoads the file project item.
Public methodUnloadUnloads the file project item.
Public methodUpdateLocalCopyUpdates the local copy of the project item.
Public methodUpdateRemoteCopyUpdates the remote copy of the project item.
Public methodWaitUntilReadyWaits until the project item is ready to continue.

The VSWebProjectItem class provides additional functionality for a Web site beyond what is provided by the ProjectItem Automation object. For example, you can load a VSWebProjectItem into a hidden document window and update it on either a local Web site or a remote Web site.

The VSWebProjectItem object is available from the Object property. The VSWebProjectItem object is returned for both file and folder project items.