Compartir a través de


ProjectItemDefinition Class

Definition

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

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.

Properties

ItemType

Type of this item definition.

Metadata

Metadata on the item definition. If there is no metadata, returns empty collection. This is a read-only collection.

MetadataCount

Count of metadata on the item definition.

Project

Project that this item lives in. ProjectDefinitions always live in a project.

Methods

GetMetadata(String)

Get any metadata in the item that has the specified name, otherwise returns null

GetMetadataValue(String)

Get the value of any metadata in the item that has the specified name, otherwise returns null

SetMetadataValue(String, String)

Sets a new metadata value on the ItemDefinition.

Applies to