ProjectElement.Clone 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.
Overloads
Clone() |
Returns a shallow clone of this project element. |
Clone(ProjectRootElement) |
Returns a shallow clone of this project element. |
Clone()
- Source:
- ProjectElement.cs
Returns a shallow clone of this project element.
public:
Microsoft::Build::Construction::ProjectElement ^ Clone();
public Microsoft.Build.Construction.ProjectElement Clone ();
member this.Clone : unit -> Microsoft.Build.Construction.ProjectElement
Public Function Clone () As ProjectElement
Returns
The cloned element.
Applies to
Clone(ProjectRootElement)
- Source:
- ProjectElement.cs
Returns a shallow clone of this project element.
protected public:
virtual Microsoft::Build::Construction::ProjectElement ^ Clone(Microsoft::Build::Construction::ProjectRootElement ^ factory);
protected internal virtual Microsoft.Build.Construction.ProjectElement Clone (Microsoft.Build.Construction.ProjectRootElement factory);
abstract member Clone : Microsoft.Build.Construction.ProjectRootElement -> Microsoft.Build.Construction.ProjectElement
override this.Clone : Microsoft.Build.Construction.ProjectRootElement -> Microsoft.Build.Construction.ProjectElement
Protected Friend Overridable Function Clone (factory As ProjectRootElement) As ProjectElement
Parameters
- factory
- ProjectRootElement
The factory to use for creating the new instance.
Returns
The cloned element.