DataDOMEvent.Operation Property
Gets the type of action that is applied to an XML Document Object Model (DOM) node during a data validation event.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Remarks
The values that the Operation property returns include Insert, Update, and Delete.
Example
In the following example, the Operation property of the DataDOMEventObject object is used to check the type of action that is occurring to avoid multiple notifications for updates made to node values:
public void item_OnAfterChange(DataDOMEvent e)
{
if (!e.IsUndoRedo && e.Operation == "Delete"
&& e.Site.nodeName == "item" &&
e.Source.nodeName == "item")
{
Calculate();
}
}
See Also
Reference
DataDOMEvent Interface
DataDOMEvent Members
Microsoft.Office.Interop.InfoPath Namespace