Return Value
An integer representing the number of bands in the raster dataset.
await QueuedTask.Run(() => { RasterDatasetDefinition rasterDatasetDefinition = rasterDataset.GetDefinition(); // access the dataset definition properties rasterDatasetDefinition.GetBandCount(); });
Target Platforms: Windows 11, Windows 10