Protected types can only be declared inside of a class

A type within a module was declared as Protected.

Error ID: BC31047

To correct this error

  1. Declare the type within a class.

  2. Remove the Protected modifier.

See Also

Reference

Class Statement (Visual Basic)

Protected (Visual Basic)