## FieldInfo::SetValue method


将属性值设置到特定对象。

```cpp
void System::Reflection::FieldInfo::SetValue(const System::SharedPtr<System::Object> &obj, const System::SharedPtr<System::Object> &value)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| obj | const System::SharedPtr\<System::Object\>\& | [Object](../../../system/object/) 用于写入属性的对象。 |
| 值 | const System::SharedPtr\<System::Object\>\& | 要设置的属性值。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [FieldInfo](../)
* Namespace [System::Reflection](../../)
* Library [Aspose.Font for C++](../../../)
