Property accessors cannot be declared '<accessmodifier>' in a 'Default' property

A Get Statement or Set Statement in a default property includes the Private keyword.

A default property cannot be Private, and neither can its individual property procedures (Get or Set).

Error ID: BC31107

To correct this error

  • Remove the Private keyword from the Get or Set statement, or remove Default from the Property Statement.

See also