Android Guides | Samples

Java.Lang.Class.GetDeclaredField Method

Returns a Field object for the field with the given name which is declared in the class represented by this Class.

Syntax

[Android.Runtime.Register("getDeclaredField", "(Ljava/lang/String;)Ljava/lang/reflect/Field;", "")]
public Field GetDeclaredField (String name)

See Also

Parameters

name

Exceptions

TypeReason
NoSuchFieldExceptionif the requested field can not be found.

Remarks

Returns a Field object for the field with the given name which is declared in the class represented by this Class.

[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