Compartir a través de


PrivateType.InvokeStatic Method

Definition

Overloads

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

Invokes the static method

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

Invokes the static method

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

Invokes static member

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

Invokes the static method

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

Invokes the static method

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

Invokes the static method

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

Invokes static member

InvokeStatic(String, BindingFlags, Object[])

Invokes the static method

InvokeStatic(String, Object[], CultureInfo)

Invokes the static method

InvokeStatic(String, Object[])

Invokes static member

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

Invokes the static method

public:
 System::Object ^ InvokeStatic(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 InvokeStatic (string name, System.Reflection.BindingFlags bindingFlags, Type[] parameterTypes, object[] args, System.Globalization.CultureInfo culture, Type[] typeArguments);
member this.InvokeStatic : string * System.Reflection.BindingFlags * Type[] * obj[] * System.Globalization.CultureInfo * Type[] -> obj
Public Function InvokeStatic (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 member

bindingFlags
BindingFlags

Additional invocation attributes

parameterTypes
Type[]

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

args
Object[]

Arguments to the invocation

culture
CultureInfo

Culture

typeArguments
Type[]

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

Returns

Result of invocation

Applies to

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

Invokes the static method

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

Parameters

name
String

Name of the member

bindingFlags
BindingFlags

Additional invocation attributes

parameterTypes
Type[]

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

args
Object[]

Arguments to the invocation

culture
CultureInfo

Culture

Returns

Result of invocation

Applies to

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

Invokes static member

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

Parameters

name
String

Name of the member to InvokeHelper

parameterTypes
Type[]

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

args
Object[]

Arguments to the invocation

typeArguments
Type[]

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

Returns

Result of invocation

Applies to

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

Invokes the static method

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

Parameters

name
String

Name of the member

parameterTypes
Type[]

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

args
Object[]

Arguments to the invocation

culture
CultureInfo

Culture info

Returns

Result of invocation

Applies to

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

Invokes the static method

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

Parameters

name
String

Name of the member

bindingFlags
BindingFlags

Additional invocation attributes

parameterTypes
Type[]

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

args
Object[]

Arguments to the invocation

Returns

Result of invocation

Applies to

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

Invokes the static method

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

Parameters

name
String

Name of the member

bindingFlags
BindingFlags

Additional invocation attributes

args
Object[]

Arguments to the invocation

culture
CultureInfo

Culture

Returns

Result of invocation

Applies to

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

Invokes static member

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

Parameters

name
String

Name of the member to InvokeHelper

parameterTypes
Type[]

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

args
Object[]

Arguments to the invocation

Returns

Result of invocation

Applies to

InvokeStatic(String, BindingFlags, Object[])

Invokes the static method

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

Parameters

name
String

Name of the member

bindingFlags
BindingFlags

Additional invocation attributes

args
Object[]

Arguments to the invocation

Returns

Result of invocation

Applies to

InvokeStatic(String, Object[], CultureInfo)

Invokes the static method

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

Parameters

name
String

Name of the member

args
Object[]

Arguments to the invocation

culture
CultureInfo

Culture

Returns

Result of invocation

Applies to

InvokeStatic(String, Object[])

Invokes static member

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

Parameters

name
String

Name of the member to InvokeHelper

args
Object[]

Arguments to the invocation

Returns

Result of invocation

Applies to