Module.GetMethod Method (System.Reflection) (original) (raw)

Source:

Module.cs

Source:

Module.cs

Source:

Module.cs

Source:

Module.cs

Returns a method having the specified name, binding information, calling convention, and parameter types and modifiers.

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, 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, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[]? modifiers);
public System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
member this.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo

Parameters

bindingAttr

BindingFlags

One of the BindingFlags bit flags used to control the search.

binder

Binder

An object that implements Binder, containing properties related to this method.

types

Type[]

The parameter types to search for.

modifiers

ParameterModifier[]

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

Returns

A MethodInfo object in accordance with the specified criteria, or null if the method does not exist.

Exceptions

name is null, types is null, or types (i) is null.

See also

Applies to