Export (0) Print
Expand All

ScriptObject.GetMethod Method (String, BindingFlags)

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.

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

public MethodInfo GetMethod(
	string name,
	BindingFlags bindingAttr
)

Parameters

name
Type: System.String

The name of the method to get.

bindingAttr
Type: System.Reflection.BindingFlags

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

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)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft