Share via


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)

Syntax

'Declaration
'Usage

Property Value

An XmlOperation enumeration for the operation that has occurred.

Remarks

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 Office InfoPath 2007 or in a Web browser.

See Also

Reference

XmlEventArgs Class
XmlEventArgs Members
Microsoft.Office.InfoPath Namespace