InsertBefore()

XmlAttributeCollection::InsertBefore(const SharedPtr<XmlAttribute>&, const SharedPtr<XmlAttribute>&) method

Inserts the specified attribute immediately before the specified reference attribute.

SharedPtr<XmlAttribute> System::Xml::XmlAttributeCollection::InsertBefore(const SharedPtr<XmlAttribute> &newNode, const SharedPtr<XmlAttribute> &refNode)

Arguments

ParameterTypeDescription
newNodeconst SharedPtr<XmlAttribute>&The attribute to insert.
refNodeconst SharedPtr<XmlAttribute>&The reference attribute. newNode is placed before the refNode.

Return Value

The XmlAttribute to insert into the collection.

See Also