ProjectItemInstance.ITaskItem.CopyMetadataTo(ITaskItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.