Port
Specifies the COM port number.
■
Syntax
[VB]
Public Property
[C#]
public bool
Port
■
Property
An integer indicating the port number
Parameter value(s): 1: Connector interface, 4: IrDA
Default value: 4
Exceptions
■
Name of Exception
InvalidOperationException
Note
■
If the value of this property is changed while COM port is open, an exception will be thrown.
If a port number that does not exist is specified at in this property, no exceptions will be
thrown immediately; however, an exception will be thrown later when an attempt is made to
open the specified port.
[Ex.] Specify the connector interface.
[VB] MyComm.Port = 1
[C#] MyComm.Port = 1;
Port
As Integer
{get; set}
Meaning
The COM port is already open.
- 300 -