Partager via


PrivateObject.SetProperty Method

Definition

Overloads

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

Sets the property

SetProperty(String, Object, Object[])

Set the property

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

Sets the property

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

Set the property

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

Sets the property

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

Parameters

name
String

Name of the property

bindingFlags
BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

value
Object

value to set

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

SetProperty(String, Object, Object[])

Set the property

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

Parameters

name
String

Name of the property

value
Object

value to set

args
Object[]

Arguments to pass to the member to invoke.

Applies to

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

Sets the property

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

Parameters

name
String

Name of the property

bindingFlags
BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

value
Object

value to set

args
Object[]

Arguments to pass to the member to invoke.

Applies to

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

Set the property

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

Parameters

name
String

Name of the property

parameterTypes
Type[]

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

value
Object

value to set

args
Object[]

Arguments to pass to the member to invoke.

Applies to