ProjectElementContainer.PrependChild(ProjectElement) Method

Definition

Inserts the provided element as the first child. Throws if the parent is not itself parented. Throws if the node to add is already parented. Throws if the node to add was created from a different project than this node.

C#
public void PrependChild(Microsoft.Build.Construction.ProjectElement child);

Parameters

child
ProjectElement

The project element to be prepended.

Remarks

Throws an exception if this project container is not parented, or if the child element is already parented, or if the child element was created by a different ProjectRootElement.

Applies to

Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17