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

定義

名前付きメソッドを Reflection オブジェクトに追加します。

public:
 System::Reflection::MethodInfo ^ AddMethod(System::String ^ name, Delegate ^ method);
public System.Reflection.MethodInfo AddMethod(string name, Delegate method);
abstract member AddMethod : string * Delegate -> System.Reflection.MethodInfo
Public Function AddMethod (name As String, method As Delegate) As MethodInfo

パラメーター

name
String

メソッドの名前。

method
Delegate

メソッドへのデリゲート。

返品

追加されたメソッドを表す MethodInfo オブジェクト。

例外

IExpando オブジェクトは、このメソッドをサポートしていません。

適用対象