ProjectElementContainer.AppendChild(ProjectElement) 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.
Inserts the provided element as the last 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.
public:
void AppendChild(Microsoft::Build::Construction::ProjectElement ^ child);
public void AppendChild (Microsoft.Build.Construction.ProjectElement child);
member this.AppendChild : Microsoft.Build.Construction.ProjectElement -> unit
Public Sub AppendChild (child As ProjectElement)
Parameters
- child
- ProjectElement
The project element to be appended.
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.