Udostępnij przez


IExpando.AddMethod(String, Delegate) Metoda

Definicja

Dodaje nazwaną metodę do obiektu 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

Parametry

name
String

Nazwa metody.

method
Delegate

Delegat do metody .

Zwraca

Obiekt MethodInfo reprezentujący dodaną metodę.

Wyjątki

Obiekt IExpando nie obsługuje tej metody.

Dotyczy