About the ArcGIS Component Category Registrar dialog box


SummaryThis dialog box, as part of the ArcGIS Visual Studio integrated development environment (IDE) Integration Framework, allows you to register classes in the current project to ESRI component categories.

Additional Requirements
  • ArcGIS Visual Studio IDE Integration Framework for Visual Studio 2005.

In this topic


Component category registrar options

Much of the extensibility of ArcGIS relies on Component Object Model (COM) categories. Classes written in .NET can be automatically registered in a particular component category by adding COM registration functions in the code. There are a large number of ESRI component categories you can register your class to. With the help of the classes defined in the ESRI.ArcGIS.ADF.CATIDs namespace, this dialog box automates the task of stubbing out category registration functions in your .NET class to enable self-component category registration.
For more information on COM registration functions, see COMRegisterFunctionAttribute and COMUnregistrationFunctionAttribute in System.Runtime.InteropServices. You can find step-by-step information on using the different elements of the ArcGIS Visual Studio IDE Integration Framework in the .NET development walk-throughs.
To view the ArcGIS Component Category Registrar dialog box, choose Add Component Category from the Project menu. It is also shown as a page in the ArcGIS Add Class wizard. See the following screen shot:
 
 
Component category registrar descriptions
The following describes each area on the ArcGIS Component Category Registrar dialog box:
Classes written in C# are eligible to be exposed to COM when the access modifier is set to public and the ComVisible class attribute is set to true (if missing, it defaults to true). For VB .NET classes, the ComClass attribute must be applied.
 
Add-in compatibility—This tool is capable of recognizing and upgrading code inserted by the Component Category Registrar add-in available for Visual Studio .NET 2003.


See Also:

Overview: ArcGIS Visual Studio IDE Integration Framework
About the ArcGIS Add Class wizard
How to register classes in COM component categories