private IMetadataHelper GetMetadataExtension() { try { UID metaDataID = new UIDClass(); //the ProgID metaDataID.Value = "esriCatalogUI.MetadataExtension"; //or the CLSID //metaDataID.Value = "{055B2B99-F2C9-11D2-9FC1-00C04F8ED211}"; //ESRI Metadata Extension IExtension metadataExtension = ArcMap.Application.FindExtensionByCLSID(metaDataID); return metadataExtension as IMetadataHelper; } catch (Exception ex) { MessageBox.Show(ex.ToString()); return null; } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.