Sets an event collector object to handle error events in the runtime.
Parameters
Parameters
Description
eventCollector
[out] A smart pointer to the custom event collector object.
Remarks
When a custom event collector object was set, the default event collector become inactive, therefore the recording of error events is not working. To restore the default event collector and resume events recording, call this method without a parameter.