Item Definition Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An evaluated item definition for a particular item-type.
public ref class ProjectItemDefinition
public class ProjectItemDefinition
type ProjectItemDefinition = class
Public Class ProjectItemDefinition
Note that these are somewhat different to items. Like items, they can have metadata; like properties, the metadata can override each other. So during evaluation all the item definitions for a type are rolled together (assuming their conditions are true) to create one ProjectItemDefinition for each type. For this reason, the ProjectItemDefinition often will not point to a single ProjectItemDefinitionElement. The metadata within, however, will each point to a single ProjectMetadataElement, and these can be added, removed, and modified.
Type of this item definition.
Metadata on the item definition. If there is no metadata, returns empty collection. This is a read-only collection.
Count of metadata on the item definition.
Project that this item lives in. ProjectDefinitions always live in a project.
Get any metadata in the item that has the specified name, otherwise returns null
Get the value of any metadata in the item that has the specified name, otherwise returns null
Sets a new metadata value on the ItemDefinition.