Bagikan melalui


EventHandlerAttribute Kelas

Definisi

Mengaitkan jenis argumen peristiwa dengan nama atribut peristiwa.

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
Warisan
EventHandlerAttribute
Atribut

Konstruktor

EventHandlerAttribute(String, Type)

Membuat instans EventHandlerAttribute.

EventHandlerAttribute(String, Type, Boolean, Boolean)

Membuat instans EventHandlerAttribute.

Properti

AttributeName

Mendapatkan nama atribut.

EnablePreventDefault

Mendapatkan kemampuan peristiwa untuk mencegah alur peristiwa default.

EnableStopPropagation

Mendapatkan kemampuan peristiwa untuk menghentikan penyebaran.

EventArgsType

Mendapatkan jenis argumen peristiwa.

Berlaku untuk