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

In This Topic
    GetDefinition Method (RasterDataset)
    In This Topic
    Gets the RasterDatasetDefinition of this raster dataset. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public new RasterDatasetDefinition GetDefinition()
    Public Shadows Function GetDefinition() As RasterDatasetDefinition

    Return Value

    The RasterDatasetDefinition of this raster dataset.
    Example
    Get the raster dataset definition from a raster dataset
    await QueuedTask.Run(() =>
    {
      RasterDatasetDefinition rasterDatasetDefinition = rasterDataset.GetDefinition();
    
      // access the dataset definition properties
      rasterDatasetDefinition.GetBandCount();
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also