Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MemberDescriptor::FindMethod Method (Type^, String^, array<Type^>^, Type^)

 

Finds the given method through reflection, searching only for public methods.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected:
static MethodInfo^ FindMethod(
	Type^ componentClass,
	String^ name,
	array<Type^>^ args,
	Type^ returnType
)

Parameters

componentClass
Type: System::Type^

The component that contains the method.

name
Type: System::String^

The name of the method to find.

args
Type: array<System::Type^>^

An array of parameters for the method, used to choose between overloaded methods.

returnType
Type: System::Type^

The type to return for the method.

Return Value

Type: System.Reflection::MethodInfo^

A MethodInfo that represents the method, or null if the method is not found.

ReflectionPermission

for access to private class members and metadata. Associated enumeration: Unrestricted

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft