Expected one of 'Dim', 'Const', 'Public', 'Private', 'Protected', 'Friend', 'Shadows', 'ReadOnly' or 'Shared'

A declaration statement is missing a declaration keyword. One possible cause is that an attribute declaration calls a method.

Error ID: BC30195

To correct this error

  1. Check to see if a method is declared inside an attribute declaration.

  2. Start the statement with the appropriate declaration keyword.

See Also

Reference

Arrays cannot be declared with 'New'

Other Resources

Declared Elements in Visual Basic