ArcGIS Runtime SDK for WPF - Library Reference
PortName Property
See Also 
ESRI.ArcGIS.Client.Local.Gps Namespace > SerialPortGpsCoordinateWatcher Class : PortName Property

Gets or sets port name. Port name can be as follows: COMn - COM port (n - any number). E.g. "COM1", "COM5", or "COM999"

Syntax

Visual Basic (Declaration) 
Public Property PortName As String
C# 
public string PortName {get; set;}

Exceptions

ExceptionDescription
System.ArgumentNullExceptionPort name is invalid, e.g. it is negative.
System.InvalidOperationExceptionProperty cannot be changed if connection is open.
System.ArgumentExceptionThe PortName property was set to a value that starts with "\\".

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.