Share via


IExpando.AddMethod(String, Delegate) 메서드

정의

Reflection 개체에 명명된 메서드를 추가합니다.

public:
 System::Reflection::MethodInfo ^ AddMethod(System::String ^ name, Delegate ^ method);
public System.Reflection.MethodInfo AddMethod (string name, Delegate method);
abstract member AddMethod : string * Delegate -> System.Reflection.MethodInfo
Public Function AddMethod (name As String, method As Delegate) As MethodInfo

매개 변수

name
String

메서드의 이름입니다.

method
Delegate

메서드의 대리자입니다.

반환

추가된 메서드를 나타내는 MethodInfo 개체입니다.

예외

IExpando 개체가 이 메서드를 지원하지 않는 경우

적용 대상