System::Reflection::PropertyInfo::SetValue metodo

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

Imposta il valore della proprietà su un oggetto specifico.

void System::Reflection::PropertyInfo::SetValue(System::SharedPtr<System::Object> obj, System::SharedPtr<System::Object> value)
ParametroTipoDescrizione
objSystem::SharedPtr<System::Object>Object su cui scrivere la proprietà.
valoreSystem::SharedPtr<System::Object>Valore della proprietà da impostare.

Vedi anche

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

Imposta il valore della proprietà su un oggetto specifico.

void System::Reflection::PropertyInfo::SetValue(System::SharedPtr<System::Object> obj, System::SharedPtr<System::Object> value, System::ArrayPtr<System::SharedPtr<System::Object>> indexer)
ParametroTipoDescrizione
objSystem::SharedPtr<System::Object>Object su cui scrivere la proprietà.
indicizzatoreSystem::SharedPtr<System::Object>Questi sono valori di indice opzionali per le proprietà indicizzate. Per le proprietà non indicizzate, questo valore dovrebbe essere nullo.
valoreSystem::ArrayPtr<System::SharedPtr<System::Object>>Valore della proprietà da impostare.

Vedi anche