ITaskItem2 Interface

 

This interface adds escaping support to the ITaskItem interface.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

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

NameDescription
System_CAPS_pubpropertyEvaluatedIncludeEscaped

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

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

System_CAPS_pubpropertyItemSpec

Gets or sets the item specification.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

System_CAPS_pubpropertyMetadataCount

Gets the number of metadata entries associated with the item.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

System_CAPS_pubpropertyMetadataNames

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

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

NameDescription
System_CAPS_pubmethodCloneCustomMetadata()

Gets the collection of custom metadata.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

System_CAPS_pubmethodCloneCustomMetadataEscaped()

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

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

System_CAPS_pubmethodCopyMetadataTo(ITaskItem)

Copies the custom metadata entries to another item.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

System_CAPS_pubmethodGetMetadata(String)

Gets the value of the specified metadata entry.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

System_CAPS_pubmethodGetMetadataValueEscaped(String)

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

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

System_CAPS_pubmethodRemoveMetadata(String)

Removes the specified metadata entry from the item.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

System_CAPS_pubmethodSetMetadata(String, String)

Adds or changes a custom metadata entry to the item.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ITaskItem.)

System_CAPS_pubmethodSetMetadataValueLiteral(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.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Return to top
Show: