Udostępnij za pośrednictwem


ITaskItem.CopyMetadataTo(ITaskItem) Method

Definition

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

public:
 void CopyMetadataTo(Microsoft::Build::Framework::ITaskItem ^ destinationItem);
public void CopyMetadataTo (Microsoft.Build.Framework.ITaskItem destinationItem);
abstract member CopyMetadataTo : Microsoft.Build.Framework.ITaskItem -> unit
Public Sub CopyMetadataTo (destinationItem As ITaskItem)

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