PrivateObject.SetField PrivateObject.SetField PrivateObject.SetField Method

Definition

Overloads

SetField(String, Object) SetField(String, Object) SetField(String, Object)

Sets the field

SetField(String, BindingFlags, Object) SetField(String, BindingFlags, Object)

Sets the field

SetField(String, Object) SetField(String, Object) SetField(String, Object)

Sets the field

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 String String

Name of the field

value
Object Object Object

value to set

SetField(String, BindingFlags, Object) SetField(String, BindingFlags, Object)

Sets the field

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

Parameters

name
String String String

Name of the field

bindingFlags
BindingFlags BindingFlags BindingFlags

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

value
Object Object Object

value to set

Applies to