System::Reflection::PropertyInfo::SetValue method

PropertyInfo::SetValue(System::SharedPtr<System::Object>, System::SharedPtr<System::Object>) method

Sets property value to specific object.

void System::Reflection::PropertyInfo::SetValue(System::SharedPtr<System::Object> obj, System::SharedPtr<System::Object> value)
ParameterTypeDescription
objSystem::SharedPtr<System::Object>Object to write property to.
valueSystem::SharedPtr<System::Object>Value of property to set.

See Also

PropertyInfo::SetValue(System::SharedPtr<System::Object>, System::SharedPtr<System::Object>, System::ArrayPtr<System::SharedPtr<System::Object>>) method

Sets property value to specific object.

void System::Reflection::PropertyInfo::SetValue(System::SharedPtr<System::Object> obj, System::SharedPtr<System::Object> value, System::ArrayPtr<System::SharedPtr<System::Object>> indexer)
ParameterTypeDescription
objSystem::SharedPtr<System::Object>Object to write property to.
indexerSystem::SharedPtr<System::Object>These are optional index values for indexed properties. For non-indexed properties, this value should be null.
valueSystem::ArrayPtr<System::SharedPtr<System::Object>>Value of property to set.

See Also