Export (0) Print
Expand All

IReflect.GetMethod Method (String, BindingFlags, Binder, Type[], ParameterModifier[])

Retrieves a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods.

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

MethodInfo GetMethod (
	string name,
	BindingFlags bindingAttr,
	Binder binder,
	Type[] types,
	ParameterModifier[] modifiers
)
MethodInfo GetMethod (
	String name, 
	BindingFlags bindingAttr, 
	Binder binder, 
	Type[] types, 
	ParameterModifier[] modifiers
)
function GetMethod (
	name : String, 
	bindingAttr : BindingFlags, 
	binder : Binder, 
	types : Type[], 
	modifiers : ParameterModifier[]
) : MethodInfo

Parameters

name

The name of the member to find.

bindingAttr

The binding attributes used to control the search.

binder

An object that implements Binder, containing properties related to this method.

types

An array used to choose among overloaded methods.

modifiers

An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.

Return Value

The requested method that matches all the specified parameters.

Exception typeCondition

AmbiguousMatchException

The object implements multiple methods with the same name.

The return value is a match based on the method name, BindingFlags enum member, the kind of type conversion specified by the binder parameter, the overload, and the ParameterInfo that describes the signature of the method.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show:
© 2014 Microsoft