InternalTypeHelper.AddEventHandler(EventInfo, Object, Delegate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived (generated) class, attaches an event handler delegate to an internal event.
protected public:
abstract void AddEventHandler(System::Reflection::EventInfo ^ eventInfo, System::Object ^ target, Delegate ^ handler);
protected internal abstract void AddEventHandler (System.Reflection.EventInfo eventInfo, object target, Delegate handler);
abstract member AddEventHandler : System.Reflection.EventInfo * obj * Delegate -> unit
Protected Friend MustOverride Sub AddEventHandler (eventInfo As EventInfo, target As Object, handler As Delegate)
Parameters
- eventInfo
- EventInfo
The event information for the event (CLR reflection information).
- target
- Object
The target where the handler is attached.
- handler
- Delegate
The event handler.
Remarks
The InternalTypeHelper class is not intended for use by anything other than the WPF XAML markup compiler.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา