ESRI.ArcGIS.Mobile
PortName Property
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Gps Namespace > SerialPortGpsConnection Class : PortName Property

Gets or sets port name. Port name can be as follows: AUTO - COM port auto detect COMn - COM port (n - any number). E.g. "COM1", "COM5", or "COM999" n - equal to COMn (n - any number). E.g. "1", "5", or "999"

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("The port name.")>
<DefaultValueAttribute()>
<CategoryAttribute("Gps")>
Public Property PortName As String
C# 
[DescriptionAttribute("The port name.")]
[DefaultValueAttribute()]
[CategoryAttribute("Gps")]
public string PortName {get; set;}

Exceptions

ExceptionDescription
InvalidOperationExceptionProperty cannot be changed if connection is open.
ArgumentOutOfRangeExceptionPort name is invalid, e.g. it is negative.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.