Freigeben über


BuildPropertyGroup.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

This method creates a copy of the BuildPropertyGroup. A shallow clone will reference the same BuildProperty objects as the original. A deep clone will deep clone the BuildProperty objects themselves. If this is a persisted BuildPropertyGroup, only deep clones are allowed, because you can't have the same XML element belonging to two parents.

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

Parameters

deepClone
Boolean

Returns

The cloned BuildPropertyGroup.

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