JSObject.IExpando.AddMethod(String, Delegate) 方法

定義

將指定的方法加入至物件中。 JScript 中不會實作 IExpando.AddMethod(String, Delegate)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

 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

參數

name
String

要加入的方法名稱。

method
Delegate

方法的委派。

傳回

MethodInfo

所有情況下都是 null。

實作

適用於

另請參閱