This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRasterDataset2 Interface > IRasterDataset2.IsEmpty Property (ArcObjects .NET 10.4 SDK) |
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
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.