ProjectItemDefinition Class

Definition

Represents an evaluated item definition for a particular item-type.

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

Remarks

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.

Properties

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.

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 any metadata in the item definition with the given name.

GetMetadataValue(String)

Gets 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(String, String)

Sets the value of the given metadata in the item definition.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to