ArcGIS Pro 2.6 API Reference Guide
IsEmpty Method

ArcGIS.Core.Data.Raster Namespace > RasterDataset Class : IsEmpty Method
Gets a value indicating whether this raster dataset is empty. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public bool IsEmpty()
Public Function IsEmpty() As Boolean

Return Value

A boolean value that is true if this raster dataset is empty; otherwise, false.
Remarks
An empty raster means that properties of the Raster are not defined. The width, height, and the number of bands of the raster are all 0. It can not be used before populating pixels to it.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

RasterDataset Class
RasterDataset Members