Click or drag to resize

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

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: IRegistration
return an IRegistration that can be used to unregister the event handler.
See Also