Partager via


VirtualTypeImplementor.SetField(FieldInfo, Object, Object) Method

Definition

Sets the value of the requested field.

public:
 virtual void SetField(System::Reflection::FieldInfo ^ field, System::Object ^ instance, System::Object ^ value);
public virtual void SetField (System.Reflection.FieldInfo field, object instance, object value);
abstract member SetField : System.Reflection.FieldInfo * obj * obj -> unit
override this.SetField : System.Reflection.FieldInfo * obj * obj -> unit
Public Overridable Sub SetField (field As FieldInfo, instance As Object, value As Object)

Parameters

field
FieldInfo

The field for which to set the value.

instance
Object

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

value
Object

The new value of the field.

Exceptions

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

Applies to