ProjectItemDefinition Class
Represents an evaluated item definition for a particular item-type.
Assembly: Microsoft.Build (in Microsoft.Build.dll)
The ProjectItemDefinition type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ItemType | Gets the item type of this item definition. |
![]() | Metadata | Gets an enumerator over all metadata for the item definition. |
![]() | MetadataCount | Gets the count of the metadata on the item definition. |
![]() | Project | Gets the project that contains this item definition. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetMetadata | Get any metadata in the item definition with the given name. |
![]() | GetMetadataValue | Get the value of any metadata in the item that has the specified name. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetMetadataValue | Sets the value of the given metadata in the item definition. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Item definitions are not the same as items. Like items, item definitions can have metadata. Like properties, new metadata can override old metadata with the same name.
During evaluation, all the item definitions for an item type are collected together (assuming their conditions are true) to create one ProjectItemDefinition for each type. For this reason, a project item definition can refer to more than one project item definition element. The metadata within a project item definition, however, refers to a single project metadata element, which can be added, removed, and modified.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
