System.Xml.XPath.XPathNavigator.InsertBefore C# (CSharp) Method

InsertBefore() public method

public InsertBefore ( ) : XmlWriter
return System.Xml.XmlWriter
        public virtual XmlWriter InsertBefore()
        {
            throw new NotSupportedException();
        }

Same methods

XPathNavigator::InsertBefore ( XPathNavigator newSibling ) : void
XPathNavigator::InsertBefore ( XmlReader newSibling ) : void
XPathNavigator::InsertBefore ( string newSibling ) : void

Usage Example

Example #1
0
        public virtual XmlWriter PrependChild()
        {
            XPathNavigator nav = Clone();

            if (nav.MoveToFirstChild())
            {
                return(nav.InsertBefore());
            }
            else
            {
                return(AppendChild());
            }
        }
All Usage Examples Of System.Xml.XPath.XPathNavigator::InsertBefore