Type '<typename>' cannot be used as an attribute because it is not declared 'Public'

Attributes must be public.

Error ID: BC31516

To correct this error

  • Add the Public modifier to the attribute class.

See Also

Reference

Public (Visual Basic)