Table of Contents

Method GetMethodImpl

Namespace
Microsoft.Samples.Debugging.CorMetadata
Assembly
corapi.dll

GetMethodImpl(string, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

When overridden in a derived class, searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.

protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)

Parameters

name string

The string containing the name of the method to get.

bindingAttr BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return null.

binder Binder

An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.-or- A null reference (Nothing in Visual Basic), to use the DefaultBinder.

callConvention CallingConventions

The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and what process cleans up the stack.

types Type[]

An array of Type objects representing the number, order, and type of the parameters for the method to get.-or- An empty array of the type Type (that is, Type[] types = new Type[0]) to get a method that takes no parameters.-or- null. If types is null, arguments are not matched.

modifiers ParameterModifier[]

An array of ParameterModifier objects representing the attributes associated with the corresponding element in the types array. The default binder does not process this parameter.

Returns

MethodInfo

An object representing the method that matches the specified requirements, if found; otherwise, null.

Exceptions

AmbiguousMatchException

More than one method is found with the specified name and matching the specified binding constraints.

ArgumentNullException

name is null.

ArgumentException

types is multidimensional.-or- modifiers is multidimensional.-or- types and modifiers do not have the same length.

NotSupportedException

The current type is a TypeBuilder or GenericTypeParameterBuilder.