Compartilhar via


VirtualTypeImplementor.SetPropertyValue Method

Definition

Sets the value of the requested property.

public:
 virtual void SetPropertyValue(System::Reflection::PropertyInfo ^ propertyInfo, System::Object ^ instance, System::Object ^ value, cli::array <System::Object ^> ^ args);
public virtual void SetPropertyValue (System.Reflection.PropertyInfo propertyInfo, object instance, object value, object[] args);
abstract member SetPropertyValue : System.Reflection.PropertyInfo * obj * obj * obj[] -> unit
override this.SetPropertyValue : System.Reflection.PropertyInfo * obj * obj * obj[] -> unit
Public Overridable Sub SetPropertyValue (propertyInfo As PropertyInfo, instance As Object, value As Object, args As Object())

Parameters

propertyInfo
PropertyInfo
instance
Object

The instance on which to set the property. This may be null if the property is static.

value
Object

An optional array of arguments used for parameterized properties. This will never be null, but may be an empty array.

args
Object[]

The new value of the property.

Exceptions

If non-abstract derived class did not provide an implementation by overriding this method.

Applies to