This topic has not yet been rated - Rate this topic

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

This API supports the .NET Framework 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
)

Parameters

name
Type: System.String
The name of the method to search for.
bindingAttr
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.
types
Type: System.Type[]
The parameter types that are used to locate a matching method.
modifiers
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.

Implements

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ