Exception | Description |
---|---|
System.ArgumentNullException | Port name is invalid, e.g. it is negative. |
System.InvalidOperationException | Property cannot be changed if connection is open. |
System.ArgumentException | The PortName property was set to a value that starts with "\\". |
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8