Partager via


BuildItemGroup.Clone(Boolean) Method

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Clones the BuildItemGroup. A shallow clone here is one that references the same BuildItem objects as the original, whereas a deep clone actually clones the BuildItem objects as well. If this is a persisted BuildItemGroup, only deep clones are allowed, because you can't have the same XML element belonging to two parents.

public:
 Microsoft::Build::BuildEngine::BuildItemGroup ^ Clone(bool deepClone);
public Microsoft.Build.BuildEngine.BuildItemGroup Clone (bool deepClone);
member this.Clone : bool -> Microsoft.Build.BuildEngine.BuildItemGroup
Public Function Clone (deepClone As Boolean) As BuildItemGroup

Parameters

deepClone
Boolean

true to create a deep copy of the BuildItemGroup; otherwise, false.

Returns

A copy of the BuildItemGroup.

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to