AccessibleObject.Accessible Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the value of the accessible
flag for this object. -or- Set the accessible
flag for this object to
the indicated boolean value.
public virtual bool Accessible { [Android.Runtime.Register("isAccessible", "()Z", "GetIsAccessibleHandler")] get; [Android.Runtime.Register("setAccessible", "(Z)V", "GetSetAccessible_ZHandler")] set; }
[<get: Android.Runtime.Register("isAccessible", "()Z", "GetIsAccessibleHandler")>]
[<set: Android.Runtime.Register("setAccessible", "(Z)V", "GetSetAccessible_ZHandler")>]
member this.Accessible : bool with get, set
Property Value
the value of the object's accessible
flag
- Attributes
Remarks
Property getter documentation:
Get the value of the accessible
flag for this object.
Java documentation for java.lang.reflect.AccessibleObject.isAccessible()
.
Property setter documentation:
Set the accessible
flag for this object to the indicated boolean value. A value of true
indicates that the reflected object should suppress Java language access checking when it is used. A value of false
indicates that the reflected object should enforce Java language access checks.
First, if there is a security manager, its checkPermission
method is called with a ReflectPermission("suppressAccessChecks")
permission.
A SecurityException
is raised if flag
is true
but accessibility of this object may not be changed (for example, if this element object is a Constructor
object for the class java.lang.Class
).
A SecurityException
is raised if this object is a java.lang.reflect.Constructor
object for the class java.lang.Class
, and flag
is true.
Java documentation for java.lang.reflect.AccessibleObject.setAccessible(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.