Export (0) Print
Expand All

Binder.SelectMethod Method

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

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

public abstract MethodBase SelectMethod (
	BindingFlags bindingAttr,
	MethodBase[] match,
	Type[] types,
	ParameterModifier[] modifiers
)
public abstract MethodBase SelectMethod (
	BindingFlags bindingAttr, 
	MethodBase[] match, 
	Type[] types, 
	ParameterModifier[] modifiers
)
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).

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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft