Show / Hide Table of Contents

Method Close

Close()

Closes the raster and releases resources.

Declaration
public void Close()
Remarks

Before closing a raster, remove any objects that reference it, such as a RasterLayer in a map or scene. After a raster is closed, it can no longer be used, and attempts to access it may result in an error.

After closing a raster, the underlying files it references can be deleted or moved.

Applies to

Platforms and versions
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.