Binder.SelectMethod Method
.NET Framework 1.1
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 [C#] public abstract MethodBase SelectMethod( BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[] modifiers ); [C++] public: virtual MethodBase* SelectMethod( BindingFlags bindingAttr, MethodBase* match[], Type* types[], ParameterModifier modifiers[] ) = 0; [JScript] public abstract function SelectMethod( bindingAttr : BindingFlags, match : MethodBase[], types : Type[], modifiers : ParameterModifier[] ) : MethodBase;
Parameters
- bindingAttr
- One of the BindingFlags enumerators.
- match
- The set of methods Reflection has determined to be a possible match, typically because they have the correct member name.
- types
- The values used to locate a matching method.
- modifiers
- 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).
Remarks
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.
Requirements
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