Partager via


PrivateObject.SetField Method

Definition

Overloads

SetField(String, Object)

Sets the field

SetField(String, BindingFlags, Object)

Sets the field

SetField(String, Object)

Sets the field

public:
 void SetField(System::String ^ name, System::Object ^ value);
public void SetField (string name, object value);
member this.SetField : string * obj -> unit
Public Sub SetField (name As String, value As Object)

Parameters

name
String

Name of the field

value
Object

value to set

Applies to

SetField(String, BindingFlags, Object)

Sets the field

public:
 void SetField(System::String ^ name, System::Reflection::BindingFlags bindingFlags, System::Object ^ value);
public void SetField (string name, System.Reflection.BindingFlags bindingFlags, object value);
member this.SetField : string * System.Reflection.BindingFlags * obj -> unit
Public Sub SetField (name As String, bindingFlags As BindingFlags, value As Object)

Parameters

name
String

Name of the field

bindingFlags
BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

value
Object

value to set

Applies to