WeakReference()

WeakReference< T >::WeakReference() method

Default constructor.

System::WeakReference<T>::WeakReference()

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

Constructor from nullptr.

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

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

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

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

Arguments

ParameterTypeDescription
dataconst SmartPtr<T>&Object to store.

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

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

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

Arguments

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

See Also