ProjectElementContainer.InsertBeforeChild 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.
Insert the child before the reference child. Reference child if provided must be parented by this element. Reference child may be null, in which case this is equivalent to AppendChild(child). Throws if the parent is not itself parented. Throws if the reference node does not have this node as its parent. 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 InsertBeforeChild(Microsoft::Build::Construction::ProjectElement ^ child, Microsoft::Build::Construction::ProjectElement ^ reference);
public void InsertBeforeChild (Microsoft.Build.Construction.ProjectElement child, Microsoft.Build.Construction.ProjectElement reference);
member this.InsertBeforeChild : Microsoft.Build.Construction.ProjectElement * Microsoft.Build.Construction.ProjectElement -> unit
Public Sub InsertBeforeChild (child As ProjectElement, reference As ProjectElement)
Parameters
- child
- ProjectElement
The project element to be inserted.
- reference
- ProjectElement
The project element to be inserted before.
Remarks
Semantics are those of XmlNode.InsertBeforeChild.