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

Définition

Ajoute la méthode spécifiée à l'objet. IExpando.AddMethod(String, Delegate) n'est pas encore implémentée dans JScript.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

 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

Paramètres

name
String

Nom de la méthode à ajouter.

method
Delegate

Délégué de la méthode.

Retours

Valeur null dans tous les cas.

Implémente

S’applique à

Voir aussi