System::WeakReference< T >::TryGetTarget method

WeakReference< T >::TryGetTarget method

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

bool System::WeakReference<T>::TryGetTarget(const SmartPtr<T> &data) const
ParameterTypeDescription
dataconst SmartPtr<T>&Object referenced by the current WeakReference object.

ReturnValue

True if an operation succeded, false otherwise.

See Also