Sdílet prostřednictvím


GlobalScope.IExpando.AddMethod(String, Delegate) Metoda

Definice

Přidá zadanou metodu do globálního rozsahu. Tato metoda není implementována v JScript.

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

 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

Název metody, která se má přidat

method
Delegate

Delegát metody.

Návraty

MethodInfo

hodnota null ve všech případech.

Implementuje

Platí pro

Viz také