'<typename>' cannot be used as an attribute because it is declared 'MustInherit'

Custom attribute classes cannot be declared as MustInherit.

Error ID: BC31506

To correct this error

  • Remove the MustInherit modifier from custom attributes.

See Also

Reference

AttributeUsageAttribute

Other Resources

Custom Attributes in Visual Basic