ESRI.ArcGIS.Mobile
OnOpen Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Gps Namespace > SerialPortGpsConnection Class : OnOpen Method

Opens a new SerialPort connection within the NativeSerialPortGpsConnection class and starts reading sentences arriving via the port.

Syntax

Visual Basic (Declaration) 
Protected Overrides Sub OnOpen() 
C# 
protected override void OnOpen()

Exceptions

ExceptionDescription
NotSupportedException"Generic GPS connection error"
IOException"Generic IO error on specified port"
FileNotFoundException"Error opening the specified Port"
InvalidOperationException"An invalid operation has occurred on the specified Port"

Remarks

There can be only one SerialPort connection within the SerialPortGpsConnection object. The best practices for any application is to wait for some amount of time after calling close before attempting to re-open by calling the Open method. Be aware the port may not be closed instantly.

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.