GetMethod Method (String, Type[])
Collapse the table of content
Expand the table of content

Module.GetMethod Method (String, Type[])

 

Returns a method having the specified name and parameter types.

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

public MethodInfo GetMethod(
	string name,
	Type[] types
)

Parameters

name
Type: System.String

The method name.

types
Type: System.Type[]

The parameter types to search for.

Return Value

Type: System.Reflection.MethodInfo

A MethodInfo object in accordance with the specified criteria, or null if the method does not exist.

Exception Condition
ArgumentNullException

name is null, types is null, or types (i) is null.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft