## WeakReference< T >::SetTarget method


現在の [WeakReference](../../weakreference/) オブジェクトが参照しているオブジェクト（ターゲット）を設定します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| data | const SmartPtr\<T\>\& | [Object](../../object/) を設定します。 |

## 参照

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