次の方法で共有


EventBuilder.AddOtherMethod メソッド

このイベントに関連付ける "other" メソッドの 1 つを追加します。"other" メソッドとは、イベントに関連付けられた "on" メソッドおよび "raise" メソッド以外のメソッドです。この関数は、必要な数の "other" メソッドを追加するために何回も呼び出すことができます。

Public Sub AddOtherMethod( _
   ByVal mdBuilder As MethodBuilder _)
[C#]
public void AddOtherMethod(MethodBuildermdBuilder);
[C++]
public: void AddOtherMethod(MethodBuilder* mdBuilder);
[JScript]
public function AddOtherMethod(
   mdBuilder : MethodBuilder);

パラメータ

  • mdBuilder
    他のメソッドを表す MethodBuilder オブジェクト。

例外

例外の種類 条件
ArgumentNullException mdBuilder が null 参照 (Visual Basic では Nothing) です。
InvalidOperationException CreateType が、外側の型に対して呼び出されました。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

EventBuilder クラス | EventBuilder メンバ | System.Reflection.Emit 名前空間