Sdílet prostřednictvím


EventHandlerAttribute Třída

Definice

Přidruží typ argumentu události k názvu atributu události.

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
Dědičnost
EventHandlerAttribute
Atributy

Konstruktory

EventHandlerAttribute(String, Type)

Vytvoří instanci objektu EventHandlerAttribute.

EventHandlerAttribute(String, Type, Boolean, Boolean)

Vytvoří instanci objektu EventHandlerAttribute.

Vlastnosti

AttributeName

Získá název atributu.

EnablePreventDefault

Získá schopnost události zabránit výchozímu toku událostí.

EnableStopPropagation

Získá schopnost události zastavit šíření.

EventArgsType

Získá typ argumentu události.

Platí pro