'Microsoft.VisualBasic.ComClassAttribute' cannot be applied to '<classname1>' because its container '<classname2>' is not declared 'Public'
A class using a COMClassAttribute attribute block is declared inside a class that is not Public. If a class is to be exposed as a COM object, its entire containment hierarchy must be declared with Public access.
Error ID: BC32504
To correct this error
- Declare all containing classes Public, or remove the COMClassAttribute attribute block.
See Also
Concepts
Attributes Used in Visual Basic