Compartilhar via


ITaskItem2 Interface

Definition

This interface adds escaping support to the ITaskItem interface.

public interface class ITaskItem2 : Microsoft::Build::Framework::ITaskItem
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("ac6d5a59-f877-461b-88e3-b2f06fce0cb9")]
public interface ITaskItem2 : Microsoft.Build.Framework.ITaskItem
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("ac6d5a59-f877-461b-88e3-b2f06fce0cb9")>]
type ITaskItem2 = interface
    interface ITaskItem
Public Interface ITaskItem2
Implements ITaskItem
Derived
Attributes
Implements

Properties

EvaluatedIncludeEscaped

Gets or sets the item include value e.g. for disk-based items this would be the file path.

ItemSpec

Gets or sets the item "specification" e.g. for disk-based items this would be the file path.

(Inherited from ITaskItem)
MetadataCount

Gets the number of pieces of metadata on the item. Includes both custom and built-in metadata.

(Inherited from ITaskItem)
MetadataNames

Gets the names of all the metadata on the item. Includes the built-in metadata like "FullPath".

(Inherited from ITaskItem)

Methods

CloneCustomMetadata()

Get the collection of custom metadata. This does not include built-in metadata.

(Inherited from ITaskItem)
CloneCustomMetadataEscaped()

ITaskItem2 implementation which returns a clone of the metadata on this object. Values returned are in their original escaped form.

CopyMetadataTo(ITaskItem)

Allows custom metadata on the item to be copied to another item.

(Inherited from ITaskItem)
GetMetadata(String)

Allows the values of metadata on the item to be queried.

(Inherited from ITaskItem)
GetMetadataValueEscaped(String)

Allows the values of metadata on the item to be queried.

RemoveMetadata(String)

Allows the removal of custom metadata set on the item.

(Inherited from ITaskItem)
SetMetadata(String, String)

Allows a piece of custom metadata to be set on the item.

(Inherited from ITaskItem)
SetMetadataValueLiteral(String, String)

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.

Applies to