ITaskItem2 ITaskItem2 ITaskItem2 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
type ITaskItem2 = interface
    interface ITaskItem
Public Interface ITaskItem2
Implements ITaskItem
Derived
Attributes
Implements

Properties

EvaluatedIncludeEscaped EvaluatedIncludeEscaped EvaluatedIncludeEscaped EvaluatedIncludeEscaped

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

ItemSpec ItemSpec ItemSpec ItemSpec

Gets or sets the item specification.

(Inherited from ITaskItem)
MetadataCount MetadataCount MetadataCount MetadataCount

Gets the number of metadata entries associated with the item.

(Inherited from ITaskItem)
MetadataNames MetadataNames MetadataNames MetadataNames

Gets the names of the metadata entries associated with the item.

(Inherited from ITaskItem)

Methods

CloneCustomMetadata() CloneCustomMetadata() CloneCustomMetadata() CloneCustomMetadata()

Gets the collection of custom metadata.

(Inherited from ITaskItem)
CloneCustomMetadataEscaped() CloneCustomMetadataEscaped() CloneCustomMetadataEscaped() CloneCustomMetadataEscaped()

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

CopyMetadataTo(ITaskItem) CopyMetadataTo(ITaskItem) CopyMetadataTo(ITaskItem) CopyMetadataTo(ITaskItem)

Copies the custom metadata entries to another item.

(Inherited from ITaskItem)
GetMetadata(String) GetMetadata(String) GetMetadata(String) GetMetadata(String)

Gets the value of the specified metadata entry.

(Inherited from ITaskItem)
GetMetadataValueEscaped(String) GetMetadataValueEscaped(String) GetMetadataValueEscaped(String) GetMetadataValueEscaped(String)

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

RemoveMetadata(String) RemoveMetadata(String) RemoveMetadata(String) RemoveMetadata(String)

Removes the specified metadata entry from the item.

(Inherited from ITaskItem)
SetMetadata(String, String) SetMetadata(String, String) SetMetadata(String, String) SetMetadata(String, String)

Adds or changes a custom metadata entry to the item.

(Inherited from ITaskItem)
SetMetadataValueLiteral(String, String) SetMetadataValueLiteral(String, String) SetMetadataValueLiteral(String, String) 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