JSObject.IExpando.AddMethod(String, Delegate) Metodo

Definizione

Aggiunge il metodo specificato all'oggetto. IExpando.AddMethod(String, Delegate) non è implementato in JScript.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

 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

Parametri

name
String

Nome del metodo da aggiungere.

method
Delegate

Delegato per il metodo.

Restituisce

MethodInfo

null in tutti i casi.

Implementazioni

Si applica a

Vedi anche