JSObject.IExpando.AddMethod(String, Delegate) メソッド

定義

指定したメソッドをオブジェクトに追加します。 IExpando.AddMethod(String, Delegate) は、JScript では実装されていません。

この 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。

実装

適用対象

こちらもご覧ください