ScriptObject.GetMethod Method

Definition

Gets a method that has a specified name.

Overloads

GetMethod(String, BindingFlags)

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.

GetMethod(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.

GetMethod(String, BindingFlags)

Gets a method that has the specified name.

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

public System.Reflection.MethodInfo GetMethod (string name, System.Reflection.BindingFlags bindingAttr);

Parameters

name
String

The name of the method to get.

bindingAttr
BindingFlags

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

Returns

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

Implements

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

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

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

public System.Reflection.MethodInfo GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);

Parameters

name
String

The name of the method to search for.

bindingAttr
BindingFlags

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

binder
Binder

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

types
Type[]

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

modifiers
ParameterModifier[]

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

Returns

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

Implements

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1