ProjectItem Class

Definition

Represents an evaluated design-time project item.

public ref class ProjectItem
public class ProjectItem
type ProjectItem = class
Public Class ProjectItem
Inheritance
ProjectItem

Properties

DirectMetadata

Gets an enumerator over all item metadata.

DirectMetadataCount

Gets the count of metadata for this item.

EvaluatedInclude

Gets the evaluated value of the Include attribute.

IsImported

Determines if this item originates from an imported file.

ItemType

Gets or sets the type of this item.

Metadata

Gets all the metadata for this item, including metadata originating from item definitions.

MetadataCount

Gets the count of metadata for this item, including any metadata originating from item definitions, and any built-in metadata.

Project

Gets the project that contains this project item.

UnevaluatedInclude

Gets or sets the unevaluated value of the Include attribute.

Xml

Gets the item element that is associated with this item.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetMetadata(String)

Gets the evaluated value of the given metadata for this item.

GetMetadataValue(String)

Gets the evaluated value of the given metadata for this item, including metadata originating from an item definition.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
HasMetadata(String)

Determines whether metadata with the given name is defined on this item.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveMetadata(String)

Removes any metadata with the given name.

Rename(String)

Renames the item to the given name.

SetMetadataValue(String, String)

Adds metadata with the given name and unevaluated value to the item.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to