Szerkesztés

Megosztás a következőn keresztül:


TypedArray.InvokeMember Method

Definition

Invokes the specified member of the element type or the Array class type.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual System::Object ^ InvokeMember(System::String ^ name, System::Reflection::BindingFlags flags, System::Reflection::Binder ^ binder, System::Object ^ target, cli::array <System::Object ^> ^ args, cli::array <System::Reflection::ParameterModifier> ^ modifiers, System::Globalization::CultureInfo ^ locale, cli::array <System::String ^> ^ namedParameters);
public object InvokeMember (string name, System.Reflection.BindingFlags flags, System.Reflection.Binder binder, object target, object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo locale, string[] namedParameters);
abstract member InvokeMember : string * System.Reflection.BindingFlags * System.Reflection.Binder * obj * obj[] * System.Reflection.ParameterModifier[] * System.Globalization.CultureInfo * string[] -> obj
override this.InvokeMember : string * System.Reflection.BindingFlags * System.Reflection.Binder * obj * obj[] * System.Reflection.ParameterModifier[] * System.Globalization.CultureInfo * string[] -> obj
Public Function InvokeMember (name As String, flags As BindingFlags, binder As Binder, target As Object, args As Object(), modifiers As ParameterModifier(), locale As CultureInfo, namedParameters As String()) As Object

Parameters

name
String

The name of the member to invoke.

flags
BindingFlags

A bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.

binder
Binder

An object that performs type conversion from actual argument type to formal argument type.

target
Object

The object on which to invoke the member. This must be the current script object.

args
Object[]

An array of objects that contains the number, order, and type of the parameters of the member to be invoked. This is an empty array if there are no parameters.

modifiers
ParameterModifier[]

An array that has the same length as the args parameter. It represents the invoked member's argument attributes in the metadata.

locale
CultureInfo

Provides information about a specific culture or locale. Used to format numbers, dates, and strings correctly.

namedParameters
String[]

An array of parameters.

Returns

The return value of the call to the member.

Implements

Remarks

This method can use late binding to invoke the member on the element type of the array.

Applies to

See also