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

Closes the underlying SerialPort within the NativeGpsConnection and terminates the reading of sentences via the port.

Syntax

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

Remarks

This action will set the IsOpen property to false. The best practices for any application is to wait for some amount of time after calling OnClose before attempting to re-open by calling the OnOpen 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.