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