共用方式為


BuildItem.Clone 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 creates a shallow clone of the BuildItem. If this is an xml-backed item, then the clone references the same XML element as the original, meaning that modifications to the clone will affect the original.

public:
 Microsoft::Build::BuildEngine::BuildItem ^ Clone();
public Microsoft.Build.BuildEngine.BuildItem Clone ();
member this.Clone : unit -> Microsoft.Build.BuildEngine.BuildItem
Public Function Clone () As BuildItem

Returns

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