Export (0) Print
Expand All

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
[C#]
protected virtual MethodInfo GetMethodImpl(
 string name,
 BindingFlags bindingAttr,
 Binder binder,
 CallingConventions callConvention,
 Type[] types,
 ParameterModifier[] modifiers
);
[C++]
protected: virtual MethodInfo* GetMethodImpl(
 String* name,
 BindingFlags bindingAttr,
 Binder* binder,
 CallingConventions callConvention,
 Type* types[],
 ParameterModifier modifiers[]
);
[JScript]
protected function GetMethodImpl(
   name : String,
 bindingAttr : BindingFlags,
 binder : Binder,
 callConvention : CallingConventions,
 types : Type[],
 modifiers : ParameterModifier[]
) : MethodInfo;

Parameters

name
The method name.
bindingAttr
One of the BindingFlags bit flags used to control the search.
binder
An object that implements Binder, containing properties related to this method.
callConvention
The calling convention for the method.
types
The parameter types to search for.
modifiers
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.

Exceptions

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

Requirements

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

Show:
© 2015 Microsoft