Share via


PrivateObject.GetProperty Method

Definition

Overloads

GetProperty(String, Object[])

Gets the property

GetProperty(String, BindingFlags, Object[])

Gets the property

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

Gets the property

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

Gets the property

GetProperty(String, Object[])

Gets the property

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

Parameters

name
String

Name of the property

args
Object[]

Arguments to pass to the member to invoke.

Returns

The property.

Applies to

GetProperty(String, BindingFlags, Object[])

Gets the property

public:
 System::Object ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingFlags, ... cli::array <System::Object ^> ^ args);
public object GetProperty (string name, System.Reflection.BindingFlags bindingFlags, params object[] args);
member this.GetProperty : string * System.Reflection.BindingFlags * obj[] -> obj
Public Function GetProperty (name As String, bindingFlags As BindingFlags, ParamArray args As Object()) 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.

args
Object[]

Arguments to pass to the member to invoke.

Returns

The property.

Applies to

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

Gets the property

public:
 System::Object ^ GetProperty(System::String ^ name, cli::array <Type ^> ^ parameterTypes, cli::array <System::Object ^> ^ args);
public object GetProperty (string name, Type[] parameterTypes, object[] args);
member this.GetProperty : string * Type[] * obj[] -> obj
Public Function GetProperty (name As String, parameterTypes As Type(), args As Object()) 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.

args
Object[]

Arguments to pass to the member to invoke.

Returns

The property.

Applies to

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

Gets the property

public:
 System::Object ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingFlags, cli::array <Type ^> ^ parameterTypes, cli::array <System::Object ^> ^ args);
public object GetProperty (string name, System.Reflection.BindingFlags bindingFlags, Type[] parameterTypes, object[] args);
member this.GetProperty : string * System.Reflection.BindingFlags * Type[] * obj[] -> obj
Public Function GetProperty (name As String, bindingFlags As BindingFlags, parameterTypes As Type(), args As Object()) 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.

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.

Returns

The property.

Applies to