Android Guides | Samples

Java.Lang.Class.GetDeclaredFields Method

Returns an array containing Field objects for all fields declared in the class represented by this Class.

Syntax

[Android.Runtime.Register("getDeclaredFields", "()[Ljava/lang/reflect/Field;", "")]
public Field[] GetDeclaredFields ()

See Also

Remarks

Returns an array containing Field objects for all fields declared in the class represented by this Class. If there are no fields or if this Class represents an array class, a primitive type or void then an empty array is returned.

[Android Documentation]

Requirements

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