InfoPathEventHandlerAttribute class

Apply this attribute to define an event handler in form code.

Inheritance hierarchy

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

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

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

Remarks

Important

To prevent errors in the specification of the InfoPathEventHandler attribute for an event handler, you should only use InfoPath user interface commands to add the stub for event handler code. For more information, see How to: Add an Event Handler Using the InfoPath 2003 Object Model.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

InfoPathEventHandlerAttribute members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace