Only one of 'Public', 'Private', 'Protected', 'Friend', or 'Protected Friend' can be specified

Conflicting accessibilities occur in an element declaration. Only one accessibility can be specified.

Error ID: BC30176

To correct this error

  • Choose one accessibility and remove the other keywords from the declaration.

See Also

Concepts

Access Levels in Visual Basic