Java.Lang.Reflect.AccessibleObject.SetAccessible Method
Attempts to set the accessible flag for all objects in objects.

Syntax

[Android.Runtime.Register("setAccessible", "([Ljava/lang/reflect/AccessibleObject;Z)V", "")]
public static void SetAccessible (AccessibleObject[] objects, bool flag)

Parameters

objects
the accessible objects
flag
the new value for the accessible flag

Remarks

Attempts to set the accessible flag for all objects in objects. Setting this to true prevents IllegalAccessExceptions.

[Android Documentation]

Requirements

Namespace: Java.Lang.Reflect
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1