ITaskItem.CopyMetadataTo(ITaskItem) ITaskItem.CopyMetadataTo(ITaskItem) ITaskItem.CopyMetadataTo(ITaskItem) ITaskItem.CopyMetadataTo(ITaskItem) Method

Definition

Copies the custom metadata entries 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 ITaskItem ITaskItem ITaskItem

The item to copy the metadata entries to.

Remarks

Follow the guidelines below when implementing this method.

  • Do not overwrite the ItemSpec property.

  • Do not overwrite existing metadata entries.

  • Do not copy metadata entries that do not make sense on the destination item.

Applies to