Show / Hide Table of Contents

Method Close

Close()

Closes a mobile map package.

Declaration
public void Close()
Remarks

Closes a mobile map package and frees file locks on the underlying .mmpk file or directory.

All references to mobile map package data (maps, layers, tables, networks, locators, etc.) should be released before closing the package. If active references to mobile map package data exist, this method will still close the package, but subsequent rendering and data access methods will fail. Results of accessing mobile map package data after Close() are undefined.

After closing a mobile map package, the underlying .mmpk file or directory can be moved or deleted.

Closing a mobile map package is not necessary if the package has not been loaded.

See Also
Close()
Close()

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.6 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.6 - 100.15
iOS100.6 - 100.15
UWP100.6 - 200.2
In This Article
Back to top Copyright © 2022 Esri.