VSWebProjectItem2 Interface

Provides a project item with Web site-specific functionality. This interface supports custom tools.

Namespace:  VsWebSite90
Assembly:  VsWebSite.Interop90 (in VsWebSite.Interop90.dll)

Syntax

'Declaration
<GuidAttribute("AC170AC6-D938-4796-BADA-BB4DECE4C2C5")> _
Public Interface VSWebProjectItem2 _
    Inherits VSWebProjectItem
[GuidAttribute("AC170AC6-D938-4796-BADA-BB4DECE4C2C5")]
public interface VSWebProjectItem2 : VSWebProjectItem
[GuidAttribute(L"AC170AC6-D938-4796-BADA-BB4DECE4C2C5")]
public interface class VSWebProjectItem2 : VSWebProjectItem
[<GuidAttribute("AC170AC6-D938-4796-BADA-BB4DECE4C2C5")>]
type VSWebProjectItem2 =  
    interface 
        interface VSWebProjectItem 
    end
public interface VSWebProjectItem2 extends VSWebProjectItem

The VSWebProjectItem2 type exposes the following members.

Properties

  Name Description
Public property ContainingProject Gets a reference to the project in the DTE instance that contains this Web service. (Inherited from VSWebProjectItem.)
Public property ContainingProject
Public property DTE Gets a DTE2 object that contains a reference to the Web site. (Inherited from VSWebProjectItem.)
Public property DTE
Public property ProjectItem Gets the project item. (Inherited from VSWebProjectItem.)
Public property ProjectItem
Public property RelatedFiles Gets the related files for the Web project item. (Inherited from VSWebProjectItem.)
Public property RelatedFiles

Top

Methods

  Name Description
Public method Load() Loads the file project item. (Inherited from VSWebProjectItem.)
Public method Load()
Public method RunCustomTool Runs the single-file generator that is associated with a file in order to dynamically generate a class.
Public method Unload() Unloads the file project item. (Inherited from VSWebProjectItem.)
Public method Unload()
Public method UpdateLocalCopy() Updates the local copy of the project item. (Inherited from VSWebProjectItem.)
Public method UpdateLocalCopy()
Public method UpdateRemoteCopy() Updates the remote copy of the project item. (Inherited from VSWebProjectItem.)
Public method UpdateRemoteCopy()
Public method WaitUntilReady() Waits until the project item is ready to continue. (Inherited from VSWebProjectItem.)
Public method WaitUntilReady()

Top

Remarks

The VSWebProjectItem2 interface inherits all the VSWebProjectItem members and adds a RunCustomTool method.

You can use the Object property to access the VSWebProjectItem2 object, which is returned for both file and folder project items.

A custom tool is a script stored in the App_Code folder that the single-file generator can use to dynamically generate a class.

See Also

Reference

VsWebSite90 Namespace

VSWebProjectItem

WebFileProperties2