ScriptObject.GetMethod Method (String, BindingFlags, Binder, Type[], ParameterModifier[])


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

Gets a method that has the specified name by using the specified selection criteria.

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

public MethodInfo GetMethod(
	string name,
	BindingFlags bindingAttr,
	Binder binder,
	Type[] types,
	ParameterModifier[] modifiers


Type: System.String

The name of the method to search for.

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.Type[]

The parameter types that are used to locate a matching method.

Type: System.Reflection.ParameterModifier[]

An array of parameter modifiers that enable binding to work with parameter signatures in which the types have been modified.

Return Value

Type: System.Reflection.MethodInfo

A method that has the specified name, or null if the script object does not contain the method.

.NET Framework
Available since 1.1
Return to top