PrivateType.SetStaticProperty PrivateType.SetStaticProperty PrivateType.SetStaticProperty Method

Definition

Overloads

SetStaticProperty(String, Object, Object[]) SetStaticProperty(String, Object, Object[]) SetStaticProperty(String, Object, Object[])

Sets the static property

SetStaticProperty(String, Object, Type[], Object[]) SetStaticProperty(String, Object, Type[], Object[]) SetStaticProperty(String, Object, Type[], Object[])

Sets the static property

SetStaticProperty(String, BindingFlags, Object, Object[]) SetStaticProperty(String, BindingFlags, Object, Object[])

Sets the static property

SetStaticProperty(String, BindingFlags, Object, Type[], Object[]) SetStaticProperty(String, BindingFlags, Object, Type[], Object[])

Sets the static property

SetStaticProperty(String, Object, Object[]) SetStaticProperty(String, Object, Object[]) SetStaticProperty(String, Object, Object[])

Sets the static property

public void SetStaticProperty (string name, object value, params object[] args);
member this.SetStaticProperty : string * obj * obj[] -> unit
Public Sub SetStaticProperty (name As String, value As Object, ParamArray args As Object())

Parameters

name
String String String

Name of the property

value
Object Object Object

Value to be set to field or property

args
Object[]

Arguments to pass to the member to invoke.

SetStaticProperty(String, Object, Type[], Object[]) SetStaticProperty(String, Object, Type[], Object[]) SetStaticProperty(String, Object, Type[], Object[])

Sets the static property

public void SetStaticProperty (string name, object value, Type[] parameterTypes, object[] args);
member this.SetStaticProperty : string * obj * Type[] * obj[] -> unit
Public Sub SetStaticProperty (name As String, value As Object, parameterTypes As Type(), args As Object())

Parameters

name
String String String

Name of the property

value
Object Object Object

Value to be set to field or property

parameterTypes
Type[]

An array of Type objects representing the number, order, and type of the parameters for the indexed property.

args
Object[]

Arguments to pass to the member to invoke.

SetStaticProperty(String, BindingFlags, Object, Object[]) SetStaticProperty(String, BindingFlags, Object, Object[])

Sets the static property

public void SetStaticProperty (string name, System.Reflection.BindingFlags bindingFlags, object value, params object[] args);
member this.SetStaticProperty : string * System.Reflection.BindingFlags * obj * obj[] -> unit

Parameters

name
String String String

Name of the property

bindingFlags
BindingFlags BindingFlags BindingFlags

Additional invocation attributes.

value
Object Object Object

Value to be set to field or property

args
Object[]

Optional index values for indexed properties. The indexes of indexed properties are zero-based. This value should be null for non-indexed properties.

SetStaticProperty(String, BindingFlags, Object, Type[], Object[]) SetStaticProperty(String, BindingFlags, Object, Type[], Object[])

Sets the static property

public void SetStaticProperty (string name, System.Reflection.BindingFlags bindingFlags, object value, Type[] parameterTypes, object[] args);
member this.SetStaticProperty : string * System.Reflection.BindingFlags * obj * Type[] * obj[] -> unit

Parameters

name
String String String

Name of the property

bindingFlags
BindingFlags BindingFlags BindingFlags

Additional invocation attributes.

value
Object Object Object

Value to be set to field or property

parameterTypes
Type[]

An array of Type objects representing the number, order, and type of the parameters for the indexed property.

args
Object[]

Arguments to pass to the member to invoke.

Applies to