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

Opens a new IO file connection within the FileGpsConnection class and immediately starts to read sentences.

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 file"
FileNotFoundException"File was not found"

Remarks

Sentences are read based on the ReadInterval. A valid ReadInterval associates a timer that will elaps based on the interval. 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.