
- 337 -
Port
Specifies the COM port number.
■ Syntax
[VB]
Public Property Port As Integer
[C#]
public bool Port {get; set}
■ Property
An integer indicating the port number
Parameter value(s)
: 1: Connector interface, 4: IrDA
Default value
: 4
■ Exceptions
Name of Exception Meaning
InvalidOperationException The COM port is already open.
■ 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;
Comentários a estes Manuais