Compartir a través de


PrivateType.SetStaticFieldOrProperty Method

Definition

Overloads

SetStaticFieldOrProperty(String, Object)

Sets the static field or property

SetStaticFieldOrProperty(String, BindingFlags, Object)

Sets the static field or property using binding attributes

SetStaticFieldOrProperty(String, Object)

Sets the static field or property

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

Parameters

name
String

Name of the field or property

value
Object

Value to be set to field or property

Applies to

SetStaticFieldOrProperty(String, BindingFlags, Object)

Sets the static field or property using binding attributes

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

Parameters

name
String

Name of the field or property

bindingFlags
BindingFlags

Additional invocation attributes

value
Object

Value to be set to field or property

Applies to