Share via


IExpando.AddMethod(String, Delegate) Método

Definição

Adiciona o método nomeado ao objeto 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

Parâmetros

name
String

O nome do método.

method
Delegate

O delegado para o método.

Retornos

Um objeto MethodInfo que representa o método adicionado.

Exceções

O objeto IExpando não dá suporte a este método.

Aplica-se a