ArcGIS Pro 2.7 API Reference Guide
GetRaster Method

ArcGIS.Desktop.Mapping Namespace > BasicRasterLayer Class : GetRaster Method
Returns this basic raster layer's underlying ArcGIS.Core.Data.Raster.Raster object. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Raster GetRaster()
Public Function GetRaster() As Raster

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

BasicRasterLayer Class
BasicRasterLayer Members