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


IRasterDataset2.IsEmpty Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

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(
  VARIANT_BOOL* IsEmpty
);
[C++]

Parameters IsEmpty [out, retval] IsEmpty is a parameter of type VARIANT_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