Share via


ObjectStreamClass.GetFields Method

Definition

Return an array of the fields of this serializable class.

[Android.Runtime.Register("getFields", "()[Ljava/io/ObjectStreamField;", "GetGetFieldsHandler")]
public virtual Java.IO.ObjectStreamField[]? GetFields ();
[<Android.Runtime.Register("getFields", "()[Ljava/io/ObjectStreamField;", "GetGetFieldsHandler")>]
abstract member GetFields : unit -> Java.IO.ObjectStreamField[]
override this.GetFields : unit -> Java.IO.ObjectStreamField[]

Returns

an array containing an element for each persistent field of this class. Returns an array of length zero if there are no fields.

Attributes

Remarks

Java documentation for java.io.ObjectStreamClass.getFields().

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