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
ReadOnly Property Operation As String
Get
'Usage
Dim instance As DataDOMEvent
Dim value As String
value = instance.Operation
string Operation { get; }
Property value
Type: System.String
Remarks
The values that the Operation property returns include Insert, Update, and Delete.
Examples
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();
}
}