IDevToolsClientRegisterEventHandlerT Method |
Version 92.0.260
Namespace:
CefSharp.DevTools
Assembly:
CefSharp (in CefSharp.dll) Version: 92.0.260.0 (92.0.260.0)
Syntax IRegistration RegisterEventHandler<T>(
string eventName,
EventHandler<T> eventHandler
)
where T : DevToolsDomainEventArgsBase
generic<typename T>
where T : DevToolsDomainEventArgsBase
IRegistration^ RegisterEventHandler(
String^ eventName,
EventHandler<T>^ eventHandler
)
Parameters
- eventName
- Type: SystemString
is the event name to listen to - eventHandler
- Type: SystemEventHandlerT
event handler to call when the event occurs
Type Parameters
- T
- The event args type to which the event will be deserialized to.
Return Value
Type:
IRegistrationreturn an IRegistration that can be used to unregister the event handler.
See Also