InfoPathEventHandlerAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
应用该属性以定义表单代码中的事件处理程序。
public ref class InfoPathEventHandlerAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class InfoPathEventHandlerAttribute : Attribute
type InfoPathEventHandlerAttribute = class
inherit Attribute
Public NotInheritable Class InfoPathEventHandlerAttribute
Inherits Attribute
- 继承
-
InfoPathEventHandlerAttribute
- 属性
注解
重要说明:为了防止事件处理程序的 InfoPathEventHandler 属性规范出错,应仅使用 InfoPath 用户界面命令为事件处理程序代码添加存根。 有关详细信息,请参阅如何:使用 InfoPath 2003 对象模型添加事件处理程序。
构造函数
InfoPathEventHandlerAttribute() |
此成员仅供内部使用,不能直接在您的代码中使用。 |
属性
DataObject |
获取或设置数据适配器的名称,该适配器是应用于事件的事件处理程序OnAfterChange的属性中的InfoPathEventHandlerAttribute事件源。 |
EventType |
获取或设置在特性中 InfoPathEventHandlerAttribute 指定为 InfoPathEventType 枚举的事件的类型。 |
MatchPath |
获取或设置 XPath 表达式,该表达式指定事件源 ((如果适用于属性中的 InfoPathEventHandlerAttribute 事件) )。 |