InfoPathEventHandlerAttribute 类

定义

应用该属性以定义表单代码中的事件处理程序。

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 事件) )。

适用于