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 не поддерживает данный метод.

Применяется к