Partager via


ProjectElement.Clone Method

Definition

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.

Applies to