ProjectElement Members

Represents a project item (usually a file) and allows getting and setting attributes on it.

The ProjectElement type exposes the following members.

Methods

  Name Description
Public method Equals Determines if two ProjectElement objects are equal. (Overrides Object.Equals(Object).)
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 GetEvaluatedMetadata
Public method GetFullPathForElement Gets the absolute path of the element.
Public method GetHashCode Serves as a hash function for a ProjectElement, suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object.GetHashCode().)
Public method GetMetadata Gets the value of an attribute on a project element.
Public method GetMetadataAndThrow Gets the attribute and throws the exception if the attribute is empty or a null reference (Nothing in Visual Basic).
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 RefreshProperties Refreshes the properties for the current project item.
Public method RemoveFromProjectFile Removes this item from the project file.
Public method Rename Renames the ProjectElement object.
Public method SetMetadata Sets an attribute on the project element.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines if two ProjectElement objects are equal.
Public operatorStatic member Inequality Determines if two ProjectElement objects are not equal.

Top

Properties

  Name Description
Public property ItemName Gets and sets the item name.

Top

See Also

Reference

ProjectElement Class

Microsoft.VisualStudio.Package Namespace