Redigera

Dela via


TypeInfo.GetDeclaredMethod(String) Method

Definition

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

public:
 virtual System::Reflection::MethodInfo ^ GetDeclaredMethod(System::String ^ name);
public virtual System.Reflection.MethodInfo GetDeclaredMethod (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

The name of the method.

Returns

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

Exceptions

name is null.

Applies to