Specifiers valid only at the beginning of a declaration

Keywords specifying accessibility and other designations must appear before the declaration keyword, such as Dim or Function.

Error ID: BC30181

To correct this error

  • Move all specifiers between the attribute list (if any) and the declaration keyword.

See Also

Reference

Class Statement (Visual Basic)

Dim Statement (Visual Basic)

Function Statement (Visual Basic)

Property Statement

Structure Statement