You implement this interface to receive events fired by the Serial Monitor Control library's main object. The Serial Monitor Control calls the _ISerialMonitorEvents.OnChange method when there is a change in the device collection entries. Please see documentation for the _IMonitoringEvents interface for information on binding to the event source.
// This interface is not available in scripting environment
public interface _ISerialMonitorEvents
{
// Methods
void ${OnChange}();
}
struct _ISerialMonitorEvents : IDispatch
{
// Methods
HRESULT ${OnChange}();
};
// This method is not available in scripting environment
void OnChange();
HRESULT OnChange();
Fired when device appears or disappears.