InfoPathEventHandlerAttribute class

Office 2013 and later

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


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

public sealed class InfoPathEventHandlerAttribute : Attribute

Important noteImportant

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.

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