This document is archived and information here might be outdated.  Recommended version.


IRasterDataset2.IsEmpty Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRasterDataset2 Interface > IRasterDataset2.IsEmpty Property
ArcGIS Developer Help

IRasterDataset2.IsEmpty Property

Indicates whether the raster dataset is empty.

[Visual Basic .NET]
Public ReadOnly Property IsEmpty As Boolean
[C#]
public bool IsEmpty {get;}
[C++]
HRESULT get_IsEmpty(
  Boolean* IsEmpty
);
[C++]
Parameters
IsEmpty [out, retval]

IsEmpty is a parameter of type bool*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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.

Co-create a Raster and IRasterDataset2::CreateRaster create an empty raster.

 

IRasterBandCollection::AppendBands or AppendBand allows you to populate this raster.

 

See Also

IRasterDataset2 Interface