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

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

例外

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

適用対象