SerialPortSettings..::..PortName Property
Summary:
Gets or sets the port for communications, including but not limited to all
available COM ports.
Returns:
The communications port. The default is COM1.
Exceptions:
System.ArgumentNullException:
The System.IO.Ports.SerialPort.PortName property was set to null.
System.ArgumentException:
The System.IO.Ports.SerialPort.PortName property was set to a value with
a length of zero.-or-The System.IO.Ports.SerialPort.PortName property was
set to a value that starts with "\\".-or-The port name was not valid.
System.InvalidOperationException:
The specified port is open.
Namespace:
CAS.Lib.CommonBus.CommunicationLayer.RSAssembly: CommServer.CommonBus (in CommServer.CommonBus.dll)
Syntax
[DefaultValueAttribute] [BrowsableAttribute] [MonitoringDescriptionAttribute] public byte PortName { get; set; }
<DefaultValueAttribute> _ <BrowsableAttribute> _ <MonitoringDescriptionAttribute> _ Public Property PortName As Byte Get Set
[DefaultValueAttribute] [BrowsableAttribute] [MonitoringDescriptionAttribute] public: property unsigned char^ PortName { unsigned char^ get (); void set (unsigned char^ value); }