This documentation is archived and is not being maintained.

Module.GetMethodImpl Method

Returns the method implementation in accordance with the specified criteria.

[Visual Basic]
Protected Overridable Function GetMethodImpl( _
   ByVal name As String, _
   ByVal bindingAttr As BindingFlags, _
   ByVal binder As Binder, _
   ByVal callConvention As CallingConventions, _
   ByVal types() As Type, _
   ByVal modifiers() As ParameterModifier _
) As MethodInfo
protected virtual MethodInfo GetMethodImpl(
 string name,
 BindingFlags bindingAttr,
 Binder binder,
 CallingConventions callConvention,
 Type[] types,
 ParameterModifier[] modifiers
protected: virtual MethodInfo* GetMethodImpl(
 String* name,
 BindingFlags bindingAttr,
 Binder* binder,
 CallingConventions callConvention,
 Type* types[],
 ParameterModifier modifiers[]
protected function GetMethodImpl(
   name : String,
 bindingAttr : BindingFlags,
 binder : Binder,
 callConvention : CallingConventions,
 types : Type[],
 modifiers : ParameterModifier[]
) : MethodInfo;


The method name.
One of the BindingFlags bit flags used to control the search.
An object that implements Binder, containing properties related to this method.
The calling convention for the method.
The parameter types to search for.
An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.

Return Value

A MethodInfo object containing implementation information as specified, or a null reference (Nothing in Visual Basic) if the method does not exist.


Exception Type Condition
AmbiguousMatchException types is a null reference (Nothing in Visual Basic).


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Module Class | Module Members | System.Reflection Namespace | BindingFlags | CallingConventions | ParameterModifier