This topic has not yet been rated - Rate this topic

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.

  Name Description
Public property EvaluatedIncludeEscaped Gets or sets the item include value e.g. for disk-based items this would be the file path.
Public property ItemSpec Gets or sets the item specification. (Inherited from ITaskItem.)
Public property MetadataCount Gets the number of metadata entries associated with the item. (Inherited from ITaskItem.)
Public property MetadataNames Gets the names of the metadata entries associated with the item. (Inherited from ITaskItem.)
Top
  Name Description
Public method CloneCustomMetadata Gets the collection of custom metadata. (Inherited from ITaskItem.)
Public method CloneCustomMetadataEscaped ITaskItem2 implementation which returns a clone of the metadata on this object. Values returned are in their original escaped form.
Public method CopyMetadataTo Copies the custom metadata entries to another item. (Inherited from ITaskItem.)
Public method GetMetadata Gets the value of the specified metadata entry. (Inherited from ITaskItem.)
Public method GetMetadataValueEscaped Allows the values of metadata on the item to be queried.
Public method RemoveMetadata Removes the specified metadata entry from the item. (Inherited from ITaskItem.)
Public method SetMetadata Adds or changes a custom metadata entry to the item. (Inherited from ITaskItem.)
Public method SetMetadataValueLiteral 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.
Top

.NET Framework

Supported in: 4

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ