whether or not your event handler function calls the advanced function UnshareKernel
The function argument can be a string, a symbol naming a Mathematica function, or a pure function, and it will be called with whatever arguments the event sends.
AddEventHandler returns a delegate object that can be passed to RemoveEventHandler to remove the callback function.
Alternatively, use NETNewDelegate to manually create a delegate and pass that as the second argument instead of the function.