
- 336 -
PortOpen
Opens/closes the COM port.
■ Syntax
[VB]
Public Property PortOpen As Boolean
[C#]
public bool PortOpen {get;set}
■ Property
COM port status: Open (=True), Disabled (=False)
Default value
: False
■ Exceptions
Name of Exception Meaning
DevNotFoundException No COM port exists.
ObjectDisposedException
The COM port has not been opened (i.e., The COM port
is closed).
SecurityException The COM port has already been opened.
[Ex.] Open the COM port.
[VB] MyComm.PortOpen = True
[C#] MyComm.PortOpen = true;
Comentarios a estos manuales