ITaskItem.CopyMetadataTo(ITaskItem) Method

Definition

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

C#
public void CopyMetadataTo(Microsoft.Build.Framework.ITaskItem destinationItem);

Parameters

destinationItem
ITaskItem

The item to copy metadata to.

Remarks

RECOMMENDED GUIDELINES FOR METHOD IMPLEMENTATIONS: 1) this method should NOT copy over the item-spec 2) if a particular piece of metadata already exists on the destination item, it should NOT be overwritten 3) if there are pieces of metadata on the item that make no semantic sense on the destination item, they should NOT be copied

Applies to

Ürün Sürümler
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1