Share via


Clase InfoPathEventHandlerAttribute

Aplique este atributo para definir un controlador de eventos en código de formulario.

Jerarquía de la herencia

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

Espacio de nombres:  Microsoft.Office.Interop.InfoPath.SemiTrust
Ensamblado:  Microsoft.Office.Interop.InfoPath.SemiTrust (en Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Sintaxis

'Declaración
<AttributeUsageAttribute(AttributeTargets.Method)> _
Public NotInheritable Class InfoPathEventHandlerAttribute _
    Inherits Attribute
'Uso
Dim instance As InfoPathEventHandlerAttribute
[AttributeUsageAttribute(AttributeTargets.Method)]
public sealed class InfoPathEventHandlerAttribute : Attribute

Comentarios

Importante

Para evitar errores en la especificación del atributo InfoPathEventHandler para un controlador de eventos, sólo debería utilizar comandos de la interfaz de usuario de InfoPath a la hora de agregar el código auxiliar para el código del controlador de eventos. Si desea obtener más información, vea Cómo: Agregar un controlador de eventos mediante el modelo de objetos de InfoPath 2003.

Seguridad para subprocesos

Los miembros static (Shared en Visual Basic) públicos de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancias sean seguros para los subprocesos.

Vea también

Referencia

Miembros InfoPathEventHandlerAttribute

Espacio de nombres Microsoft.Office.Interop.InfoPath.SemiTrust