OAFileItem Members

Represents a file in the project.

The OAFileItem type exposes the following members.

Constructors

  Name Description
Public method OAFileItem Initializes a new instance of OAFileItem for the specified project and node.

Top

Methods

  Name Description
Public method Delete Removes the item from the project and deletes it from storage. (Inherited from OAProjectItem<T>.)
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. (Inherited from OAProjectItem<T>.)
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. (Inherited from OAProjectItem<T>.)
Public method get_FileNames Gets the full path and names of the files associated with an item. (Inherited from OAProjectItem<T>.)
Public method get_IsOpen Gets whether or not the file is open in the specified view. (Overrides OAProjectItem<FileNode>.get_IsOpen(String).)
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 this file item in the specified view. (Overrides OAProjectItem<FileNode>.Open(String).)
Public method Remove Removes the project item from hierarchy, but does not delete it from disk. (Inherited from OAProjectItem<T>.)
Public method Save Saves the item with the specified file name. (Overrides OAProjectItem<FileNode>.Save(String).)
Public method SaveAs Saves the file with the specified file name. (Overrides OAProjectItem<FileNode>.SaveAs(String).)
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. (Inherited from OAProjectItem<T>.)
Public property ConfigurationManager Not implemented. Configuration on project items is not supported. (Inherited from OAProjectItem<T>.)
Public property ContainingProject Gets the automation object representing the project. (Inherited from OAProjectItem<T>.)
Public property Document Gets the document that this file item represents. (Overrides OAProjectItem<FileNode>.Document.)
Public property DTE Gets the top-level extensibility object. (Inherited from OAProjectItem<T>.)
Public property ExtenderCATID Gets the extender category ID (CATID) for the object. (Inherited from OAProjectItem<T>.)
Public property ExtenderNames Gets a list of available extenders for the item. (Inherited from OAProjectItem<T>.)
Public property FileCodeModel Gets the file code model for the item, if one exists. (Inherited from OAProjectItem<T>.)
Public property FileCount Gets the number of files associated with this item. (Inherited from OAProjectItem<T>.)
Public property IsDirty Gets whether or not the item is dirty. (Overrides OAProjectItem<FileNode>.IsDirty.)
Public property Kind Gets a GUID string indicating the type of the object. (Inherited from OAProjectItem<T>.)
Public property Name Gets or sets the name of the item. (Inherited from OAProjectItem<T>.)
Protected property Node Gets the HierarchyNode or derived class corresponding to this item. (Inherited from OAProjectItem<T>.)
Public property Object Gets an object that can be accessed by name at runtime. (Inherited from OAProjectItem<T>.)
Protected property Project Gets the automation object for the project. (Inherited from OAProjectItem<T>.)
Public property ProjectItems Gets the project items associated with this file node. (Overrides OAProjectItem<FileNode>.ProjectItems.)
Public property Properties Gets a collection of all properties that pertain to the item. (Inherited from OAProjectItem<T>.)
Public property Saved Gets or sets a value indicating whether or not the object has been modified since last being saved or opened. (Inherited from OAProjectItem<T>.)
Public property SubProject Gets the project if the tem is the root of a subproject. (Inherited from OAProjectItem<T>.)

Top

See Also

Reference

OAFileItem Class

Microsoft.VisualStudio.Package.Automation Namespace