EventHandlerAttribute 类

定义

将事件参数类型与事件属性名称相关联。

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
继承
EventHandlerAttribute
属性

构造函数

EventHandlerAttribute(String, Type)

构造 的 EventHandlerAttribute实例。

EventHandlerAttribute(String, Type, Boolean, Boolean)

构造 的 EventHandlerAttribute实例。

属性

AttributeName

获取属性名称。

EnablePreventDefault

获取事件阻止默认事件流的能力。

EnableStopPropagation

获取事件停止传播的能力。

EventArgsType

获取事件参数类型。

适用于