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

Definição

Adiciona o método especificado ao escopo global.Adds the specified method to the global scope. Este método não foi implementado em JScript.This method is not implemented in 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.The name of the method to add.

method
Delegate

O delegado para o método.The delegate to the method.

Retornos

MethodInfo

nulo em todos os casos.null in all cases.

Implementações

Aplica-se a

Confira também