JSObject.IExpando.AddMethod(String, Delegate) Metoda

Definicja

Dodaje określoną metodę do obiektu . IExpando.AddMethod(String, Delegate)Nie jest implementowane w JScript.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

 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

Parametry

name
String

Nazwa metody do dodania.

method
Delegate

Delegat do metody .

Zwraca

MethodInfo

wartość null we wszystkich przypadkach.

Implementuje

Dotyczy

Zobacz też