This documentation is archived and is not being maintained.

XmlEventArgs.Operation Property

Gets an XmlOperation enumeration that indicates the type of operation that occurred when the node was changed.

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

public abstract XmlOperation Operation { get; }

Property Value

Type: Microsoft.Office.InfoPath.XmlOperation
An XmlOperation enumeration for the operation that has occurred.

The XmlOperation enumeration values that the Operation property returns are: XmlOperation.Insert, XmlOperation.ValueChange, and XmlOperation.Delete. Which operations can occur depends on the structure of the control to which the handler for the Changed event is bound. For example, for a Text Box control, the node that the control is bound to can never be inserted or deleted, so only the XmlOperation.ValueChange operation can occur. Whereas, for a repeating control, such as a Repeating Table control, in addition to XmlOperation.ValueChange operations that can occur in the fields in the table's columns, entire groups (rows) can be inserted and deleted, which cause the Operation property to return the corresponding XmlOperation.Insert and XmlOperation.Delete enumeration values.

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.