Share via


PrivateType.SetStaticField Method

Definition

Overloads

SetStaticField(String, Object)

Sets the static field

SetStaticField(String, BindingFlags, Object)

Sets the static field using binding attributes

SetStaticField(String, Object)

Sets the static field

public:
 void SetStaticField(System::String ^ name, System::Object ^ value);
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

Name of the field

value
Object

Argument to the invocation

Applies to

SetStaticField(String, BindingFlags, Object)

Sets the static field using binding attributes

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

Parameters

name
String

Name of the field

bindingFlags
BindingFlags

Additional InvokeHelper attributes

value
Object

Argument to the invocation

Applies to