## WeakReference< T >::TryGetTarget method


تحصل على الكائن (الهدف) المشار إليه بواسطة كائن [WeakReference](../../weakreference/) الحالي.

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| data | const SmartPtr\<T\>\& | [Object](../../object/) المشار إليه بواسطة كائن [WeakReference](../../weakreference/) الحالي. |

### ReturnValue

صحيح إذا نجحت العملية، خطأ خلاف ذلك.

## انظر أيضًا

* Class [SmartPtr](../../smartptr/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
