EventHandlerAttribute Classe

Définition

Associe un type d’argument d’événement à un nom d’attribut d’événement.

public ref class EventHandlerAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class EventHandlerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type EventHandlerAttribute = class
    inherit Attribute
Public NotInheritable Class EventHandlerAttribute
Inherits Attribute
Héritage
EventHandlerAttribute
Attributs

Constructeurs

EventHandlerAttribute(String, Type)

Construit un instance de EventHandlerAttribute.

EventHandlerAttribute(String, Type, Boolean, Boolean)

Construit un instance de EventHandlerAttribute.

Propriétés

AttributeName

Obtient le nom de l’attribut.

EnablePreventDefault

Obtient la capacité de l’événement à empêcher le flux d’événements par défaut.

EnableStopPropagation

Obtient la capacité de l’événement à arrêter la propagation.

EventArgsType

Obtient le type d’argument d’événement.

S’applique à