System::Reflection::FieldInfo::SetValue 方法

FieldInfo::SetValue method

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

void System::Reflection::FieldInfo::SetValue(const System::SharedPtr<System::Object> &obj, const System::SharedPtr<System::Object> &value)
参数类型描述
objconst System::SharedPtr<System::Object>&Object 用于写入属性的对象。
const System::SharedPtr<System::Object>&要设置的属性值。

另见