Condividi tramite


Classe InfoPathEventHandlerAttribute

Applicare questo attributo per definire un gestore eventi nel codice del modulo.

Spazio dei nomi: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)

Sintassi

<AttributeUsageAttribute(AttributeTargets.Method)> _
Public NotInheritable Class InfoPathEventHandlerAttribute
    Inherits Attribute

Dim instance As InfoPathEventHandlerAttribute
[AttributeUsageAttribute(AttributeTargets.Method)] 
public sealed class InfoPathEventHandlerAttribute : Attribute

Osservazioni

Importante:

Per evitare errori nell'applicazione dell'attributo InfoPathEventHandler per un gestore eventi, è consigliabile utilizzare i comandi dell'interfaccia utente di InfoPath solo per aggiungere lo stub per il codice del gestore eventi. Per ulteriori informazioni, vedere Procedura: Aggiungere un gestore eventi tramite il modello a oggetti di InfoPath 2003.

Gerarchia di ereditarietà

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

Thread Safety

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. I membri di istanza non sono garantiti come thread-safe.

Vedere anche

Riferimenti

Membri InfoPathEventHandlerAttribute
Spazio dei nomi Microsoft.Office.Interop.InfoPath.SemiTrust