ESRI.ArcGIS.Mobile
Close Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.MobileServices Namespace > MobileCache Class : Close Method

Close the cache file.

Syntax

Visual Basic (Declaration) 
Public Overrides Sub Close() 
C# 
public override void Close()

Exceptions

ExceptionDescription
InvalidOperationExceptionThe Dispose or Close methods must be invoked from a different thread than the internal MobileService thread.

Remarks

A MobileService needs to be closed if it's going to be used to connect to a different web service. After the MobileService file is closed, the lock on the file will be released.

When a MobileService file is closed, cached data will remain in the cache file.

Requirements

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