ProjectElementContainer.DeepClone Method

Definition

Returns a clone of this project element and all its children.

C#
protected internal virtual Microsoft.Build.Construction.ProjectElementContainer DeepClone(Microsoft.Build.Construction.ProjectRootElement factory, Microsoft.Build.Construction.ProjectElementContainer parent);

Parameters

factory
ProjectRootElement

The factory to use for creating the new instance.

parent
ProjectElementContainer

The parent to append the cloned element to as a child.

Returns

The cloned element.

Applies to

Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17