OnPortLost Event

This event is triggered when a COM port is removed while it is opened (e.g. using USB to Serial cable).

Syntax

Visual Basic .NET
Sub OnPortLost(ByVal Sender As Object)
Visual C#
void OnPortLost(object Sender);

Parameters

Sender

Event source.