How To: Find GUIDs for different types of layer interfaces
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.
- Open the Windows Registry Editor: click Start > Run. Type regedit.
- In the Registry Editor, browse to the location:
- Go to Edit > Find.
- Type the name of the layer interface. Click Find Next. It may be necessary to click Edit > Find Next if the correct interface is not returned.
- When there is a match, it shows the GUID at the bottom of the Registry Editor window, for example :My Computer\HKEY_CLASSES_ROOT\Interface\<GUID_value>.