Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ITaskItem2 Interface
Collapse the table of content
Expand the table of content

ITaskItem2 Interface

This interface adds escaping support to the ITaskItem interface.

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

[ComVisibleAttribute(true)]
[GuidAttribute("ac6d5a59-f877-461b-88e3-b2f06fce0cb9")]
public interface ITaskItem2 : ITaskItem

The ITaskItem2 type exposes the following members.

  NameDescription
Public propertyEvaluatedIncludeEscapedGets or sets the item include value e.g. for disk-based items this would be the file path.
Public propertyItemSpecGets or sets the item specification. (Inherited from ITaskItem.)
Public propertyMetadataCountGets the number of metadata entries associated with the item. (Inherited from ITaskItem.)
Public propertyMetadataNamesGets the names of the metadata entries associated with the item. (Inherited from ITaskItem.)
Top

  NameDescription
Public methodCloneCustomMetadataGets the collection of custom metadata. (Inherited from ITaskItem.)
Public methodCloneCustomMetadataEscapedITaskItem2 implementation which returns a clone of the metadata on this object. Values returned are in their original escaped form.
Public methodCopyMetadataToCopies the custom metadata entries to another item. (Inherited from ITaskItem.)
Public methodGetMetadataGets the value of the specified metadata entry. (Inherited from ITaskItem.)
Public methodGetMetadataValueEscapedAllows the values of metadata on the item to be queried.
Public methodRemoveMetadataRemoves the specified metadata entry from the item. (Inherited from ITaskItem.)
Public methodSetMetadataAdds or changes a custom metadata entry to the item. (Inherited from ITaskItem.)
Public methodSetMetadataValueLiteralAllows 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.
Top

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft