Share via


PrivateObject.Invoke Method

Definition

Overloads

Invoke(String, Type[], Object[], CultureInfo)

Invokes the specified method

Invoke(String, BindingFlags, Type[], Object[], CultureInfo, Type[])

Invokes the specified method

Invoke(String, BindingFlags, Type[], Object[], CultureInfo)

Invokes the specified method

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

Invokes the specified method

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

Invokes the specified method

Invoke(String, Object[], CultureInfo)

Invokes the specified method

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

Invokes the specified method

Invoke(String, BindingFlags, Object[])

Invokes the specified method

Invoke(String, Object[])

Invokes the specified method

Invoke(String, BindingFlags, Object[], CultureInfo)

Invokes the specified method

Invoke(String, Type[], Object[], CultureInfo)

Invokes the specified method

public:
 System::Object ^ Invoke(System::String ^ name, cli::array <Type ^> ^ parameterTypes, cli::array <System::Object ^> ^ args, System::Globalization::CultureInfo ^ culture);
public object Invoke (string name, Type[] parameterTypes, object[] args, System.Globalization.CultureInfo culture);
member this.Invoke : string * Type[] * obj[] * System.Globalization.CultureInfo -> obj
Public Function Invoke (name As String, parameterTypes As Type(), args As Object(), culture As CultureInfo) As Object

Parameters

name
String

Name of the method

parameterTypes
Type[]

An array of Type objects representing the number, order, and type of the parameters for the method to get.

args
Object[]

Arguments to pass to the member to invoke.

culture
CultureInfo

Culture info

Returns

Result of method call

Applies to

Invoke(String, BindingFlags, Type[], Object[], CultureInfo, Type[])

Invokes the specified method

public:
 System::Object ^ Invoke(System::String ^ name, System::Reflection::BindingFlags bindingFlags, cli::array <Type ^> ^ parameterTypes, cli::array <System::Object ^> ^ args, System::Globalization::CultureInfo ^ culture, cli::array <Type ^> ^ typeArguments);
public object Invoke (string name, System.Reflection.BindingFlags bindingFlags, Type[] parameterTypes, object[] args, System.Globalization.CultureInfo culture, Type[] typeArguments);
member this.Invoke : string * System.Reflection.BindingFlags * Type[] * obj[] * System.Globalization.CultureInfo * Type[] -> obj
Public Function Invoke (name As String, bindingFlags As BindingFlags, parameterTypes As Type(), args As Object(), culture As CultureInfo, typeArguments As Type()) As Object

Parameters

name
String

Name of the method

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 method to get.

args
Object[]

Arguments to pass to the member to invoke.

culture
CultureInfo

Culture info

typeArguments
Type[]

An array of types corresponding to the types of the generic arguments.

Returns

Result of method call

Applies to

Invoke(String, BindingFlags, Type[], Object[], CultureInfo)

Invokes the specified method

public:
 System::Object ^ Invoke(System::String ^ name, System::Reflection::BindingFlags bindingFlags, cli::array <Type ^> ^ parameterTypes, cli::array <System::Object ^> ^ args, System::Globalization::CultureInfo ^ culture);
public object Invoke (string name, System.Reflection.BindingFlags bindingFlags, Type[] parameterTypes, object[] args, System.Globalization.CultureInfo culture);
member this.Invoke : string * System.Reflection.BindingFlags * Type[] * obj[] * System.Globalization.CultureInfo -> obj
Public Function Invoke (name As String, bindingFlags As BindingFlags, parameterTypes As Type(), args As Object(), culture As CultureInfo) As Object

Parameters

name
String

Name of the method

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 method to get.

args
Object[]

Arguments to pass to the member to invoke.

culture
CultureInfo

Culture info

Returns

Result of method call

Applies to

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

Invokes the specified method

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

Parameters

name
String

Name of the method

parameterTypes
Type[]

An array of Type objects representing the number, order, and type of the parameters for the method to get.

args
Object[]

Arguments to pass to the member to invoke.

typeArguments
Type[]

An array of types corresponding to the types of the generic arguments.

Returns

Result of method call

Applies to

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

Invokes the specified method

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

Parameters

name
String

Name of the method

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 method to get.

args
Object[]

Arguments to pass to the member to invoke.

Returns

Result of method call

Applies to

Invoke(String, Object[], CultureInfo)

Invokes the specified method

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

Parameters

name
String

Name of the method

args
Object[]

Arguments to pass to the member to invoke.

culture
CultureInfo

Culture info

Returns

Result of method call

Applies to

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

Invokes the specified method

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

Parameters

name
String

Name of the method

parameterTypes
Type[]

An array of Type objects representing the number, order, and type of the parameters for the method to get.

args
Object[]

Arguments to pass to the member to invoke.

Returns

Result of method call

Applies to

Invoke(String, BindingFlags, Object[])

Invokes the specified method

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

Parameters

name
String

Name of the method

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

Result of method call

Applies to

Invoke(String, Object[])

Invokes the specified method

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

Parameters

name
String

Name of the method

args
Object[]

Arguments to pass to the member to invoke.

Returns

Result of method call

Applies to

Invoke(String, BindingFlags, Object[], CultureInfo)

Invokes the specified method

public:
 System::Object ^ Invoke(System::String ^ name, System::Reflection::BindingFlags bindingFlags, cli::array <System::Object ^> ^ args, System::Globalization::CultureInfo ^ culture);
public object Invoke (string name, System.Reflection.BindingFlags bindingFlags, object[] args, System.Globalization.CultureInfo culture);
member this.Invoke : string * System.Reflection.BindingFlags * obj[] * System.Globalization.CultureInfo -> obj
Public Function Invoke (name As String, bindingFlags As BindingFlags, args As Object(), culture As CultureInfo) As Object

Parameters

name
String

Name of the method

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.

culture
CultureInfo

Culture info

Returns

Result of method call

Applies to