XmlEventArgs.Operation 属性
获取一个 XmlOperation 枚举,该枚举指示更改节点后发生的操作的类型。
命名空间: Microsoft.Office.InfoPath
程序集: Microsoft.Office.InfoPath(位于 Microsoft.Office.InfoPath.dll 中)
语法
声明
Public MustOverride ReadOnly Property Operation As XmlOperation
Get
用法
Dim instance As XmlEventArgs
Dim value As XmlOperation
value = instance.Operation
public abstract XmlOperation Operation { get; }
属性值
类型:Microsoft.Office.InfoPath.XmlOperation
一个 XmlOperation 枚举,该枚举表示已发生的操作。
备注
Operation 属性返回的 XmlOperation 枚举值有:XmlOperation.Insert、XmlOperation.ValueChange 和 XmlOperation.Delete。可发生的操作取决于 Changed 事件的处理程序所绑定到的控件的结构。例如,对于"文本框"控件,绝不能插入或删除该控件所绑定到的节点,因此只会发生 XmlOperation.ValueChange 操作。而对于重复控件(例如"重复表"控件),除了可以在表列的域中发生的 XmlOperation.ValueChange 操作外,还可以插入和删除整个组(行),这会使 Operation 属性返回对应的 XmlOperation.Insert 和 XmlOperation.Delete 枚举值。
可以无限制访问此成员。
可以通过 Microsoft InfoPath Filler 或 Web 浏览器内打开的表单中运行的代码访问此类型或成员。