This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterCatalogTable Interface > IRasterCatalogTable.RasterName Property (ArcObjects .NET 10.4 SDK) |
Name of the ith raster in the raster catalog.
[Visual Basic .NET] Public Function get_RasterName ( _ ByVal idx As Integer _ ) As String
[C#] public string get_RasterName ( int idx );
[C++]
HRESULT get_RasterName(
long idx,
BSTR* Name
);
[C++]
Parameters idx [in] idx is a parameter of type long Name [out, retval] Name is a parameter of type BSTR
RasterCatalogTable created from raster catalog in file system and in the geodatabase has slightly different OIDs. The first starts from 0 and the later one starts from 1. To ensure your program work properly for both cases, pass OID, which can be obtained from IRasterCatalogTable::OID(index) to this property, instead of passing index directly.