Is This Content Helpful?
We're glad to know this article was helpful.
Instructions provided describe how to obtain the GUID for specific layer types to work with IMap::Layers property.
In the ArcGIS Developer Help for IMap::Layers property, there is a list of GUIDs for six different types of layers:
Each interface in ArcObjects has a unique associated GUID value.
To obtain GUIDs for layer type interfaces that are not listed, such as IGroupLayer, IRasterLayer, ITinLayer and IEventLayer, follow the steps below.
Warning: The following instructions do not involve modifying Registry values; do not modify anything in your Registry. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary. ESRI cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk.