This documentation is archived and is not being maintained.

Binder.SelectMethod Method

Selects a method from the given set of methods, based on the argument type.

[Visual Basic]
Public MustOverride Function SelectMethod( _
   ByVal bindingAttr As BindingFlags, _
   ByVal match() As MethodBase, _
   ByVal types() As Type, _
   ByVal modifiers() As ParameterModifier _
) As MethodBase
public abstract MethodBase SelectMethod(
 BindingFlags bindingAttr,
 MethodBase[] match,
 Type[] types,
 ParameterModifier[] modifiers
public: virtual MethodBase* SelectMethod(
 BindingFlags bindingAttr,
 MethodBase* match[],
 Type* types[],
 ParameterModifier modifiers[]
) = 0;
public abstract function SelectMethod(
   bindingAttr : BindingFlags,
 match : MethodBase[],
 types : Type[],
 modifiers : ParameterModifier[]
) : MethodBase;


One of the BindingFlags enumerators.
The set of methods Reflection has determined to be a possible match, typically because they have the correct member name.
The values used to locate a matching method.
An array of parameter modifiers that enable binding to work with parameter signatures in which the types have been modified.

Return Value

A MethodBase object containing the matching method, if found; otherwise, a null reference (Nothing in Visual Basic).


This method should return a null reference (Nothing in Visual Basic) if no method matches the criteria. This method controls the selection provided by the GetConstructor and GetMethod methods on Type.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Binder Class | Binder Members | System.Reflection Namespace