PrivateType.SetStaticField PrivateType.SetStaticField PrivateType.SetStaticField Method

Definition

Overloads

SetStaticField(String, Object) SetStaticField(String, Object) SetStaticField(String, Object)

Sets the static field

SetStaticField(String, BindingFlags, Object) SetStaticField(String, BindingFlags, Object)

Sets the static field using binding attributes

SetStaticField(String, Object) SetStaticField(String, Object) SetStaticField(String, Object)

Sets the static field

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

Parameters

name
String String String

Name of the field

value
Object Object Object

Arguement to the invocation

SetStaticField(String, BindingFlags, Object) SetStaticField(String, BindingFlags, Object)

Sets the static field using binding attributes

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

Parameters

name
String String String

Name of the field

bindingFlags
BindingFlags BindingFlags BindingFlags

Additional InvokeHelper attributes

value
Object Object Object

Arguement to the invocation

Applies to