ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / RasterDataset Class / IsEmpty Method

In This Topic
    IsEmpty Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also