SetTarget()

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

Sets the object (the target) referenced by the current WeakReference object.

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

Arguments

ParameterTypeDescription
dataconst SmartPtr<T>&Object to set.

See Also