Share via


EventHandlerAttribute Class

Definition

Associates an event argument type with an event attribute name.

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
Inheritance
EventHandlerAttribute
Attributes

Constructors

EventHandlerAttribute(String, Type, Boolean, Boolean)

Constructs an instance of EventHandlerAttribute.

EventHandlerAttribute(String, Type)

Constructs an instance of EventHandlerAttribute.

Properties

AttributeName

Gets the attribute name.

EnablePreventDefault

Gets the event's ability to prevent default event flow.

EnableStopPropagation

Gets the event's ability to stop propagation.

EventArgsType

Gets the event argument type.

Applies to