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

Definición

Agrega el método especificado al objeto. IExpando.AddMethod(String, Delegate) no se implementa en JScript.

Esta API admite la infraestructura de producto y no está pensada para usarse directamente en el 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

Nombre del método que se va a agregar.

method
Delegate

El delegado al método.

Devoluciones

Es null en todos los casos.

Implementaciones

Se aplica a

Consulte también