Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A property declaration specifies access levels in the Property Statement, the Get Statement, and the Set Statement (Visual Basic).
You can always specify an access level for the property. In addition, you can specify a different access level for at most one of its property procedures (Get or Set), provided it is more restrictive than the property's access level. You cannot specify access levels for both of the property procedures.
Error ID: BC31101
To correct this error
- Remove the access modifier from either the Get statement or the Set statement.
See Also
Tasks
How to: Declare a Property with Mixed Access Levels