This documentation is archived and is not being maintained.
ProjectItemInstance Class
Visual Studio 2010
Wraps an evaluated item for build purposes.
Assembly: Microsoft.Build (in Microsoft.Build.dll)
The ProjectItemInstance type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DirectMetadataCount | Gets the number of pieces of metadata on this item. |
![]() | EvaluatedInclude | Gets the evaluated Include attribute value. |
![]() | ItemType | Gets the item type, for example "Compile". |
![]() | Metadata | Gets an enumerator over the evaluated metadata of the item. This is a read-only collection. |
![]() | MetadataCount | Gets the number of metadata entries, including metadata inherited from item definitions. |
![]() | MetadataNames | Gets all metadata names of this item, including metadata inherited from item definitions. |
![]() | Project | Gets the owning project. |
| 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 the metadata with the given name, including metadata inherited from item definitions. |
![]() | GetMetadataValue | Gets the value of the metadata with the given name, including metadata inherited from item definitions. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HasMetadata | Determines whether the metadata with the given name is defined on this item (even if its value is empty string). |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RemoveMetadata | Removes metadata with the given name. |
![]() | SetMetadata(IEnumerable<KeyValuePair<String, String>>) | Adds metadata with the given names and values. Overwrites any metadata with the same name already in the collection. |
![]() | SetMetadata(String, String) | Add metadata with the given name and value. Overwrites any metadata with the same name already in the collection. |
![]() | ToString | Gets a String that represents the current item. (Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | ITaskItem::CloneCustomMetadata | ITaskItem implementation. Gets the collection of custom metadata. |
![]() ![]() | ITaskItem::CopyMetadataTo | ITaskItem implementation. Copies the custom metadata entries to another item. |
![]() ![]() | ITaskItem::GetMetadata | ITaskItem implementation. Gets the value of the specified metadata entry. |
![]() ![]() | ITaskItem::ItemSpec | ITaskItem implementation. Gets or sets the item specification. |
![]() ![]() | ITaskItem::MetadataNames | ITaskItem implementation. Gets the names of the metadata entries associated with the item. |
![]() ![]() | ITaskItem::SetMetadata | ITaskItem implementation. Adds or changes a custom metadata entry to the item. |
![]() ![]() | ITaskItem2::CloneCustomMetadataEscaped | ITaskItem2 implementation. Returns a clone of the metadata on this object. Values returned are in their original escaped form. |
![]() ![]() | ITaskItem2::EvaluatedIncludeEscaped | ITaskItem2 implementation. Evaluated include value, escaped as necessary. May be empty string. Gets or sets the item include value e.g. for disk-based items this would be the file path. |
![]() ![]() | ITaskItem2::GetMetadataValueEscaped | ITaskItem2 implementation. Allows the values of metadata on the item to be queried. |
![]() ![]() | ITaskItem2::SetMetadataValueLiteral | ITaskItem2 implementation. Allows a piece of custom metadata to be set on the item. Assumes that the value passed in is unescaped, and escapes the value as necessary in order to maintain its value. |
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.
Show:

