PrivateType.SetStaticFieldOrProperty PrivateType.SetStaticFieldOrProperty PrivateType.SetStaticFieldOrProperty Method

Definition

Overloads

SetStaticFieldOrProperty(String, Object) SetStaticFieldOrProperty(String, Object) SetStaticFieldOrProperty(String, Object)

Sets the static field or property

SetStaticFieldOrProperty(String, BindingFlags, Object) SetStaticFieldOrProperty(String, BindingFlags, Object)

Sets the static field or property using binding attributes

SetStaticFieldOrProperty(String, Object) SetStaticFieldOrProperty(String, Object) SetStaticFieldOrProperty(String, Object)

Sets the static field or property

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

Name of the field or property

value
Object Object Object

Value to be set to field or property

SetStaticFieldOrProperty(String, BindingFlags, Object) SetStaticFieldOrProperty(String, BindingFlags, Object)

Sets the static field or property using binding attributes

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

Parameters

name
String String String

Name of the field or property

bindingFlags
BindingFlags BindingFlags BindingFlags

Additional invocation attributes

value
Object Object Object

Value to be set to field or property

Applies to