TryGetTarget()

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

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

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

Arguments

ParameterTypeDescription
dataconst SmartPtr<T>&Object referenced by the current WeakReference object.

Return Value

True if an operation succeded, false otherwise.

See Also