संपादित करें

इसके माध्यम से साझा किया गया


TypedArray.GetMethod Method

Definition

Gets a method of the Array class type 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 of the Array class type 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 of the Array class type that has the specified name by using the specified selection criteria.

GetMethod(String, BindingFlags)

Gets a method of the Array class type that has the specified name.

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

public:
 virtual System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MethodInfo GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
override this.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo

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, if one is found; otherwise, null.

Implements

See also

Applies to

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

Gets a method of the Array class type 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:
 virtual System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.MethodInfo GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo

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.

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, if one is found; otherwise, null.

Implements

See also

Applies to