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
Public MustOverride ReadOnly Property Operation As XmlOperation
    Get
'Usage
Dim instance As XmlEventArgs
Dim value As XmlOperation

value = instance.Operation
public abstract XmlOperation Operation { get; }

Property Value

Type: Microsoft.Office.InfoPath.XmlOperation
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 InfoPath Filler or in a Web browser.

See Also

Reference

XmlEventArgs Class

XmlEventArgs Members

Microsoft.Office.InfoPath Namespace