'<typename>' cannot be used as an attribute because it does not inherit from 'System.Attribute'
An attempt was made to use a class that is not derived from System.Attribute.
Error ID: BC31504
To correct this error
- Define custom attributes as classes that derive from System.Attribute by adding an Imports statement to the first line of code in the class.