Compartilhar via


EventHandlerAttribute Classe

Definição

Associa um tipo de argumento de evento a um nome de atributo de evento.

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
Herança
EventHandlerAttribute
Atributos

Construtores

EventHandlerAttribute(String, Type)

Constrói uma instância de EventHandlerAttribute.

EventHandlerAttribute(String, Type, Boolean, Boolean)

Constrói uma instância de EventHandlerAttribute.

Propriedades

AttributeName

Obtém o nome do atributo.

EnablePreventDefault

Obtém a capacidade do evento de impedir o fluxo de eventos padrão.

EnableStopPropagation

Obtém a capacidade do evento de interromper a propagação.

EventArgsType

Obtém o tipo de argumento de evento.

Aplica-se a