PrivateObject.SetProperty PrivateObject.SetProperty PrivateObject.SetProperty Method

Definition

Overloads

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

Sets the property

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

Set the property

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

Sets the property

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

Set the property

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

Sets the property

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

Parameters

name
String String String

Name of the property

bindingFlags
BindingFlags BindingFlags BindingFlags

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

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

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

Set the property

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

Name of the property

value
Object Object Object

value to set

args
Object[]

Arguments to pass to the member to invoke.

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

Sets the property

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

Parameters

name
String String String

Name of the property

bindingFlags
BindingFlags BindingFlags BindingFlags

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

value
Object Object Object

value to set

args
Object[]

Arguments to pass to the member to invoke.

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

Set the property

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

value to set

args
Object[]

Arguments to pass to the member to invoke.

Applies to