Use ComClassAttribute to simplify the process of exposing COM components from Visual Basic. COM objects are very different from .NET Framework assemblies; without the ComClassAttribute, you need to follow a number of steps to generate a COM object from Visual Basic. For classes marked with ComClassAttribute, the compiler performs many of these steps automatically.
Note: |
|---|
This attribute simplifies the creation of COM objects. To expose a class as a COM object, you must compile the project with the
Register for COM Interop option selected in the Build section of the Configuration Properties dialog box.
|