Share via


ProjectItemInstance.ITaskItem.CopyMetadataTo(ITaskItem) Method

Definition

ITaskItem implementation

 virtual void Microsoft.Build.Framework.ITaskItem.CopyMetadataTo(Microsoft::Build::Framework::ITaskItem ^ destinationItem) = Microsoft::Build::Framework::ITaskItem::CopyMetadataTo;
void ITaskItem.CopyMetadataTo (Microsoft.Build.Framework.ITaskItem destinationItem);
abstract member Microsoft.Build.Framework.ITaskItem.CopyMetadataTo : Microsoft.Build.Framework.ITaskItem -> unit
override this.Microsoft.Build.Framework.ITaskItem.CopyMetadataTo : Microsoft.Build.Framework.ITaskItem -> unit
Sub CopyMetadataTo (destinationItem As ITaskItem) Implements ITaskItem.CopyMetadataTo

Parameters

destinationItem
ITaskItem

The item to copy the metadata entries to.

Implements

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