ACCESS
669
Member is inaccessible
The member you have tried to access is not accessible. If the specified member has PROTECTED access, access is limited to the containing class or types derived from the containing class. If it has PRIVATE access, access is limited to the containing type. Accessibility is determined as follows:
- Inside an enclosing type, the accessibility of a member is determined by evaluating the accessibility of that member, regardless of the accessibility of the enclosing type. (For example, when using a field within the class in which it was declared, only the accessibility of the field, not the accessibility of the class, is evaluated.)
- Outside an enclosing type, the accessibility of a member is determined by first evaluating the accessibility of the enclosing type and then evaluating the accessibility of the member. (For example, if a field has public accessibility and its class has private accessibility, the accessibility of the field is public inside the class and private outside the class.)
- The accessibility of an inherited type member is based on the accessibility of that member as determined by the instance variable used to access it.
REQUIRED fields, properties, and any set accessors of those properties must be equally as accessible or more accessible than all their enclosing classes. If the member or set accessor is less accessible than one or more of its enclosing classes, one of the following E_ACCESS errors is reported:
-
“Required field name is inaccessible”
-
“Required property name is inaccessible”
-
“Set accessor for REQUIRED property is inaccessible”