SubscribeToErrorEvents
Subscribes or un-subscribe to error events by using the specified call back function.
Parameters:
eventHandler
The method or delegate to the call back function to be called when an error occurs.
The callback method must have the signature defined by ErrorEvent.
subscribe:
Set to true if subscribing to the event and false if un-subscribing from the event.
Interface Signature:
void SubscribeToErrorEvents(ErrorEvent eventHandler, bool subscribe);
These methods are provided for compatibility with the Win32 API. While these functions work just fine we recommend using the standard C# publish subscribe pattern as demonstrated here: Published Events.