JSObject.IExpando.AddMethod(String, Delegate) Método

Definição

Adiciona o método especificado ao objeto. IExpando.AddMethod(String, Delegate) não é implementado em JScript.

Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.

 virtual System::Reflection::MethodInfo ^ System.Runtime.InteropServices.Expando.IExpando.AddMethod(System::String ^ name, Delegate ^ method) = System::Runtime::InteropServices::Expando::IExpando::AddMethod;
System.Reflection.MethodInfo IExpando.AddMethod (string name, Delegate method);
abstract member System.Runtime.InteropServices.Expando.IExpando.AddMethod : string * Delegate -> System.Reflection.MethodInfo
override this.System.Runtime.InteropServices.Expando.IExpando.AddMethod : string * Delegate -> System.Reflection.MethodInfo
Function AddMethod (name As String, method As Delegate) As MethodInfo Implements IExpando.AddMethod

Parâmetros

name
String

O nome do método a ser adicionado.

method
Delegate

O delegado para o método.

Retornos

MethodInfo

nulo em todos os casos.

Implementações

Aplica-se a

Confira também