Share via


ObjectStreamClass.GetField(String) Method

Definition

Get the field of this class by name.

[Android.Runtime.Register("getField", "(Ljava/lang/String;)Ljava/io/ObjectStreamField;", "GetGetField_Ljava_lang_String_Handler")]
public virtual Java.IO.ObjectStreamField? GetField (string? name);
[<Android.Runtime.Register("getField", "(Ljava/lang/String;)Ljava/io/ObjectStreamField;", "GetGetField_Ljava_lang_String_Handler")>]
abstract member GetField : string -> Java.IO.ObjectStreamField
override this.GetField : string -> Java.IO.ObjectStreamField

Parameters

name
String

the name of the data field to look for

Returns

The ObjectStreamField object of the named field or null if there is no such named field.

Attributes

Remarks

Java documentation for java.io.ObjectStreamClass.getField(java.lang.String).

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.

Applies to