อ่านในภาษาอังกฤษ

แชร์ผ่าน


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.

C#
public Microsoft.Build.Construction.ProjectElement Clone();

Returns

The cloned element.

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

Clone(ProjectRootElement)

Source:
ProjectElement.cs

Returns a shallow clone of this project element.

C#
protected internal virtual Microsoft.Build.Construction.ProjectElement Clone(Microsoft.Build.Construction.ProjectRootElement factory);

Parameters

factory
ProjectRootElement

The factory to use for creating the new instance.

Returns

The cloned element.

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17