When implemented by a subclass, this method selects a method from the given set of methods, based on the specified criteria.
[Visual Basic] MustOverride Public 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;
Value | Condition |
---|---|
A MethodBase object containing the matching method. | A method matches the given criteria. |
Null | Otherwise. |
This method should return null if no method matches the criteria. This method controls the selection provided by the GetConstructor and GetMethod methods on Type.