Condividi tramite


ProjectElementContainer.InsertAfterChild Method

Definition

Insert the child after 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 PrependChild(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 InsertAfterChild(Microsoft::Build::Construction::ProjectElement ^ child, Microsoft::Build::Construction::ProjectElement ^ reference);
public void InsertAfterChild (Microsoft.Build.Construction.ProjectElement child, Microsoft.Build.Construction.ProjectElement reference);
member this.InsertAfterChild : Microsoft.Build.Construction.ProjectElement * Microsoft.Build.Construction.ProjectElement -> unit
Public Sub InsertAfterChild (child As ProjectElement, reference As ProjectElement)

Parameters

child
ProjectElement

The project element to be inserted.

reference
ProjectElement

The project element to be inserted after.

Remarks

Semantics are those of XmlNode.InsertAfterChild.

Applies to