Language

JniPeerMembers.JniInstanceFields.GetObjectValue(String, IJavaPeerable) Method

Definition

Reads a Java object-reference instance field.

public Java.Interop.JniObjectReference GetObjectValue(string encodedMember, Java.Interop.IJavaPeerable self);
member this.GetObjectValue : string * Java.Interop.IJavaPeerable -> Java.Interop.JniObjectReference

Parameters

encodedMember
String

The Java field name and JNI descriptor separated by a period, such as value.I.

self
IJavaPeerable

The managed peer whose Java instance field is accessed.

Returns

If the field value is non-null, the method returns a local JNI reference that the caller must release. If the field value is Java null, it returns an invalid reference.

Remarks

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