Method RegisterPortEvent RegisterPortEvent() Registers the port event. Declaration protected void RegisterPortEvent()