ScriptObject.InvokeMember Method (String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])


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

Invokes the specified member.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public virtual object InvokeMember(
	string name,
	BindingFlags invokeAttr,
	Binder binder,
	object target,
	object[] args,
	ParameterModifier[] modifiers,
	CultureInfo locale,
	string[] namedParameters


Type: System.String

The name of the member to invoke.

Type: System.Reflection.BindingFlags

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

Type: System.Reflection.Binder

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

Type: System.Object

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

Type: System.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.

Type: System.Reflection.ParameterModifier[]

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

Type: System.Globalization.CultureInfo

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

Type: System.String[]

An array of parameters.

Return Value

Type: System.Object

The return value of the call to the member.

.NET Framework
Available since 1.1
Return to top