SetValue()

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)

Arguments

ParameterTypeDescription
objSystem::SharedPtr<System::Object>Object to write property to.
valueSystem::SharedPtr<System::Object>Value of property to set.

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)

Arguments

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