Export (0) Print
Expand All

ProjectItem Class

Represents an evaluated design-time project item.

System.Object
  Microsoft.Build.Evaluation.ProjectItem

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

'Declaration
Public Class ProjectItem

The ProjectItem type exposes the following members.

  NameDescription
Public propertyDirectMetadataGets an enumerator over all item metadata.
Public propertyDirectMetadataCountGets the count of metadata for this item.
Public propertyEvaluatedIncludeGets the evaluated value of the Include attribute.
Public propertyIsImportedDetermines if this item originates from an imported file.
Public propertyItemTypeGets or sets the type of this item.
Public propertyMetadataGets all the metadata for this item, including metadata originating from item definitions.
Public propertyMetadataCountGets the count of metadata for this item, including any metadata originating from item definitions, and any built-in metadata.
Public propertyProjectGets the project that contains this project item.
Public propertyUnevaluatedIncludeGets or sets the unevaluated value of the Include attribute.
Public propertyXmlGets the item element that is associated with this item.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetMetadataGets the evaluated value of the given metadata for this item.
Public methodGetMetadataValueGet the evaluated value of the given metadata for this item, including metadata originating from an item definition.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHasMetadataDetermines whether metadata with the given name is defined on this item.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveMetadataRemoves any metadata with the given name.
Public methodRenameRenames the item to the given name.
Public methodSetMetadataValueAdds metadata with the given name and unevaluated value to the item.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft