Property accessors cannot be declared '<accessmodifier>' in a 'Default' property
A Get Statement or Set Statement (Visual Basic) 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
Tasks
How to: Declare a Property with Mixed Access Levels
How to: Declare and Call a Default Property in Visual Basic