i need find out all rasters from a mosaicdataset i use IMosaicDatasetOperation.Search,but got a AccessViolationException,and say "try to read or write protected memory" thanks
I'm not sure I understand what you're looking for, but let me give it a shot: so you want to access the raster datasets inside the mosaic dataset? If so, you can use the rastercatalogitem interface. For the catalog provide the mosaic dataset footprint featureclass (as accessible through IMosaicDatasetLayer. Is that what you're looking for?
Did this work? Can we not use the Catalog property on the IMosaicDataset2 to access the rasters? We have to get it from RasterCatalogItem and cast it to the MDS?