Aracılığıyla paylaş


JSObject.IExpando.AddMethod(String, Delegate) Yöntem

Tanım

Belirtilen yöntemi nesnesine ekler. IExpando.AddMethod(String, Delegate) JScript'te uygulanmadı.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

 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

Parametreler

name
String

Eklenecek yöntemin adı.

method
Delegate

Yöntemin temsilcisi.

Döndürülenler

null değerini alır.

Uygulamalar

Şunlara uygulanır

Ayrıca bkz.