NullableWeakReferenceTarget Property

Gets the object (the target) referenced by the current NullableWeakReference object. Set will only accept null.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.137 -- Release Build+84492f84208b356bfb930d6c506a4bce06d2449a
public override Object? Target { get; set; }

Return Value

Object
null if the object referenced by the current NullableWeakReference object has been garbage collected or cleared; otherwise, a reference to the object referenced by the current NullableWeakReference object.

Exceptions

InvalidOperationExceptionIf setting this property to anything other than null

See Also