Gemstone Common Library
Show/Hide TOC

# 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.163 -- Release Build+087b6813ba03894bf4bfe2466a2a63a9702d9bb9
C#
View Source Request Example

    public override Object? Target { get; set; }

VB
View Source Request Example

    Public Overrides Property Target As Object
    	Get
    	Set

C++
View Source Request Example

    public:
    virtual property Object^ Target {
    	Object^ get () override;
    	void set (Object^ value) override;
    }

JavaScript
View Source Request Example

    function get_Target();
    function set_Target(value);

#### 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

InvalidOperationException | If setting this property to anything other than null

## See Also

#### Reference

NullableWeakReference Class
Gemstone Namespace