Share via


OAProjectItem Members

Include Protected Members
Include Inherited Members

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

The OAProjectItem type exposes the following members.

Methods

 

Name

Description

Public method

Delete

Removes the item from its project and its storage.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Public method

ExpandView

Expands the view of Solution Explorer to show project items.

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

get_Extender

Gets the requested Extender, if it is available for this object.

Public method

get_FileNames

Gets the full path and names of the files associated with a project item.

Public method

get_IsOpen

Returns whether the project item is open in a particular view type.

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 the hierarchy.

Public method

Save

Saves the project item.

Public method

SaveAs

Saves the project item.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

Collection

Gets the ProjectItems collection containing the ProjectItem object supporting this property.

Public property

ConfigurationManager

Gets the ConfigurationManager object for this ProjectItem.

Public property

ContainingProject

Gets the project hosting the ProjectItem.

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 object.

Public property

FileCodeModel

Gets the FileCodeModel object for the project item.

Public property

FileCount

Gets the number of files associated with a ProjectItem.

Public property

IsDirty

Microsoft Internal Use Only. Returns whether the document associated with this item is dirty.

Public property

Kind

Gets a GUID string indicating the kind or type of the object.

Public property

Name

Gets or sets the name of the object.

Public property

Object

Gets an object that can be accessed by name at run time.

Protected property

Project

Returns the Automation project.

Public property

ProjectItems

Gets a ProjectItems for the object.

Public property

Properties

Gets a collection of all properties that pertain to the object.

Public property

Saved

Gets or sets whether the object has been modified since last being saved or opened.

Public property

SubProject

If the project item is the root of a subproject, then the SubProject property returns the Project object for the subproject.

Top

See Also

Reference

OAProjectItem Class

Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace