BuildProperty.Clone(Boolean) 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.
Creates a deep or shallow copy of the BuildProperty.
public:
Microsoft::Build::BuildEngine::BuildProperty ^ Clone(bool deepClone);
public Microsoft.Build.BuildEngine.BuildProperty Clone (bool deepClone);
member this.Clone : bool -> Microsoft.Build.BuildEngine.BuildProperty
Public Function Clone (deepClone As Boolean) As BuildProperty
Parameters
- deepClone
- Boolean
true
to create a deep copy of the BuildProperty; otherwise, false
.
Returns
A copy of the BuildProperty.
Remarks
A shallow copy of a BuildProperty references the same XML element as the original. Modifications to the name or value of a shallow copy will be reflected in both copies. However, depending on property evaluation, the two copies could have different FinalValue property values.
A deep copy of a BuildProperty creates a new XML element to reference so that both copies of the BuildProperty can be independently modified.