## WeakReference< T >::SetTarget method


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

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| data | const SmartPtr\<T\>\& | [Object](../../object/) لتعيينه. |

## انظر أيضًا

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