Share via


InfoPathEventHandlerAttribute 类

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

继承层次结构

System.Object
  System.Attribute
    Microsoft.Office.Interop.InfoPath.SemiTrust.InfoPathEventHandlerAttribute

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Method)> _
Public NotInheritable Class InfoPathEventHandlerAttribute _
    Inherits Attribute
用法
Dim instance As InfoPathEventHandlerAttribute
[AttributeUsageAttribute(AttributeTargets.Method)]
public sealed class InfoPathEventHandlerAttribute : Attribute

备注

重要

若要防止在事件处理程序的 InfoPathEventHandler 属性的规范中发生错误,您应该仅使用 InfoPath 用户界面命令为事件处理程序代码添加 stub。有关详细信息,请参阅如何:使用 InfoPath 2003 对象模型添加事件处理程序

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

InfoPathEventHandlerAttribute 成员

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间