TypeInfo.GetDeclaredMethod(String) TypeInfo.GetDeclaredMethod(String) TypeInfo.GetDeclaredMethod(String) TypeInfo.GetDeclaredMethod(String) Method

Definition

Returns an object that represents the specified public method declared by the current type.

public:
 virtual System::Reflection::MethodInfo ^ GetDeclaredMethod(System::String ^ name);
public virtual System.Reflection.MethodInfo GetDeclaredMethod (string name);
abstract member GetDeclaredMethod : string -> System.Reflection.MethodInfo
override this.GetDeclaredMethod : string -> System.Reflection.MethodInfo
Public Overridable Function GetDeclaredMethod (name As String) As MethodInfo

Parameters

name
String String String String

The name of the method.

Returns

An object that represents the specified method, if found; otherwise, null.

Exceptions

Applies to