WeakReference()

WeakReference<>::WeakReference() method

Default constructor.

System::WeakReference<>::WeakReference()

WeakReference<>::WeakReference(std::nullptr_t) method

Constructor from nullptr.

System::WeakReference<>::WeakReference(std::nullptr_t)

WeakReference<>::WeakReference(const SmartPtr<Object>&) method

Initializes a new instance of the WeakReference class, referencing the specified object.

System::WeakReference<>::WeakReference(const SmartPtr<Object> &data)

Arguments

ParameterTypeDescription
dataconst SmartPtr<Object>&Object to store.

WeakReference<>::WeakReference(const SmartPtr<Object>&, bool) method

Initializes a new instance of the WeakReference class, referencing the specified object.

System::WeakReference<>::WeakReference(const SmartPtr<Object> &data, bool trackResurrection)

Arguments

ParameterTypeDescription
dataconst SmartPtr<Object>&Object to store.
trackResurrectionboolIgnored.

See Also