다음을 통해 공유


ProjectElementContainer.DeepClone Method

Definition

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

protected public:
 virtual Microsoft::Build::Construction::ProjectElementContainer ^ DeepClone(Microsoft::Build::Construction::ProjectRootElement ^ factory, Microsoft::Build::Construction::ProjectElementContainer ^ parent);
protected internal virtual Microsoft.Build.Construction.ProjectElementContainer DeepClone (Microsoft.Build.Construction.ProjectRootElement factory, Microsoft.Build.Construction.ProjectElementContainer parent);
abstract member DeepClone : Microsoft.Build.Construction.ProjectRootElement * Microsoft.Build.Construction.ProjectElementContainer -> Microsoft.Build.Construction.ProjectElementContainer
override this.DeepClone : Microsoft.Build.Construction.ProjectRootElement * Microsoft.Build.Construction.ProjectElementContainer -> Microsoft.Build.Construction.ProjectElementContainer
Protected Friend Overridable Function DeepClone (factory As ProjectRootElement, parent As ProjectElementContainer) As ProjectElementContainer

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