## WeakReference<>::set_Target method


设置当前 [WeakReference](../../weakreference/) 对象引用的对象（目标）。

```cpp
void System::WeakReference<>::set_Target(const SmartPtr<Object> &data)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| data | const SmartPtr\<Object\>\& | [Object](../../object/) 要设置的对象。 |

## 另见

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