XmlEventArgs.OldParent property

Office 2013 and later

Gets an XPathNavigator object pointing to the node which is the parent of the node being deleted.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract XPathNavigator OldParent { get; }

Property value

Type: System.Xml.XPath.XPathNavigator
An XPathNavigator object for the parent of the deleted node.

The value of the OldParent property is a null reference (Nothing in Visual Basic) unless the change that is occurring is a delete operation. When a delete operation was performed, the Operation property will return XmlOperation.Delete.

This member can be accessed without restrictions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.