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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

name
Type: System.String

The name of the member to invoke.

invokeAttr
Type: System.Reflection.BindingFlags

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

binder
Type: System.Reflection.Binder

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

target
Type: System.Object

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

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

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

locale
Type: System.Globalization.CultureInfo

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

namedParameters
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
Show: