OAProjectItem<T> Members

Represents an item in the project (file, folder, or reference).

The OAProjectItem<T> type exposes the following members.

Constructors

  Name Description
Public method OAProjectItem<T> Initializes a new instance of OAProjectItem<T> for the supplied project and hierarchy node.

Top

Methods

  Name Description
Public method Delete Removes the item from the project and deletes it from storage.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method ExpandView Expands the Solution Explorer to show the item.
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method get_Extender Gets the requested extender if it is available for this item.
Public method get_FileNames Gets the full path and names of the files associated with an item.
Public method get_IsOpen Gets a value indicating whether the project item is open in a particular type of view.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Open Opens the project item in the specified view.
Public method Remove Removes the project item from hierarchy, but does not delete it from disk.
Public method Save Saves the project item with the supplied name.
Public method SaveAs Saves the project item with the supplied name. If the file exists, it is overwritten.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Properties

  Name Description
Public property Collection Gets the collection of project items to which this item belongs.
Public property ConfigurationManager Not implemented. Configuration on project items is not supported.
Public property ContainingProject Gets the automation object representing the project.
Public property Document Gets the document associated with the item, if one exists.
Public property DTE Gets the top-level extensibility object.
Public property ExtenderCATID Gets the extender category ID (CATID) for the object.
Public property ExtenderNames Gets a list of available extenders for the item.
Public property FileCodeModel Gets the file code model for the item, if one exists.
Public property FileCount Gets the number of files associated with this item.
Public property IsDirty Microsoft Internal Use Only. Checks if the document associated to this item is dirty.
Public property Kind Gets a GUID string indicating the type of the object.
Public property Name Gets or sets the name of the item.
Protected property Node Gets the HierarchyNode or derived class corresponding to this item.
Public property Object Gets an object that can be accessed by name at runtime.
Protected property Project Gets the automation object for the project.
Public property ProjectItems Gets the collection of project items owned by the item.
Public property Properties Gets a collection of all properties that pertain to the item.
Public property Saved Gets or sets a value indicating whether or not the object has been modified since last being saved or opened.
Public property SubProject Gets the project if the tem is the root of a subproject.

Top

See Also

Reference

OAProjectItem<T> Class

Microsoft.VisualStudio.Package.Automation Namespace