Share via


Reference.Get Method

Definition

Returns this reference object's referent.

[Android.Runtime.Register("get", "()Ljava/lang/Object;", "GetGetHandler")]
public virtual Java.Lang.Object? Get ();
[<Android.Runtime.Register("get", "()Ljava/lang/Object;", "GetGetHandler")>]
abstract member Get : unit -> Java.Lang.Object
override this.Get : unit -> Java.Lang.Object

Returns

The object to which this reference refers, or null if this reference object has been cleared

Attributes

Remarks

Returns this reference object's referent. If this reference object has been cleared, either by the program or by the garbage collector, then this method returns null.

Java documentation for java.lang.ref.Reference.get().

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