Edit

Share via


ScriptFunction.InvokeMember Method

Definition

Invokes the specified member.

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

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

Parameters

name
String

The name of the member to invoke.

invokeAttr
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.

culture
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.

Applies to