Share via


InfoPathEventHandlerAttribute.EventType property

Gets or sets the type of event specified in an InfoPathEventHandlerAttribute attribute as an InfoPathEventType enumeration.

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

Syntax

'Declaration
Public Property EventType As InfoPathEventType
    Get
    Set
'Usage
Dim instance As InfoPathEventHandlerAttribute
Dim value As InfoPathEventType

value = instance.EventType

instance.EventType = value
public InfoPathEventType EventType { get; set; }

Property value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.InfoPathEventType

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.

See also

Reference

InfoPathEventHandlerAttribute class

InfoPathEventHandlerAttribute members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace