Partager via


PrivateType.SetStaticProperty Method

Definition

Overloads

SetStaticProperty(String, Object, Object[])

Sets the static property

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

Sets the static property

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

Sets the static property

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

Sets the static property

SetStaticProperty(String, Object, Object[])

Sets the static property

public:
 void SetStaticProperty(System::String ^ name, System::Object ^ value, ... cli::array <System::Object ^> ^ args);
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

Name of the property

value
Object

Value to be set to field or property

args
Object[]

Arguments to pass to the member to invoke.

Applies to

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

Sets the static property

public:
 void SetStaticProperty(System::String ^ name, System::Object ^ value, cli::array <Type ^> ^ parameterTypes, cli::array <System::Object ^> ^ args);
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

Name of the property

value
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

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

Sets the static property

public:
 void SetStaticProperty(System::String ^ name, System::Reflection::BindingFlags bindingFlags, System::Object ^ value, ... cli::array <System::Object ^> ^ args);
public void SetStaticProperty (string name, System.Reflection.BindingFlags bindingFlags, object value, params object[] args);
member this.SetStaticProperty : string * System.Reflection.BindingFlags * obj * obj[] -> unit
Public Sub SetStaticProperty (name As String, bindingFlags As BindingFlags, value As Object, ParamArray args As Object())

Parameters

name
String

Name of the property

bindingFlags
BindingFlags

Additional invocation attributes.

value
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.

Applies to

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

Sets the static property

public:
 void SetStaticProperty(System::String ^ name, System::Reflection::BindingFlags bindingFlags, System::Object ^ value, cli::array <Type ^> ^ parameterTypes, cli::array <System::Object ^> ^ args);
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
Public Sub SetStaticProperty (name As String, bindingFlags As BindingFlags, value As Object, parameterTypes As Type(), args As Object())

Parameters

name
String

Name of the property

bindingFlags
BindingFlags

Additional invocation attributes.

value
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