EventBuilder.AddOtherMethod(MethodBuilder) 方法

定義

加入一個與這個事件相關聯的「其他」方法。 「其他」方法是指除了「on」和「raise」方法之外,與這個事件關聯的方法。 您可呼叫這個函式許多次,視需要加入許多「其他」方法。

public:
 void AddOtherMethod(System::Reflection::Emit::MethodBuilder ^ mdBuilder);
public void AddOtherMethod (System.Reflection.Emit.MethodBuilder mdBuilder);
member this.AddOtherMethod : System.Reflection.Emit.MethodBuilder -> unit
Public Sub AddOtherMethod (mdBuilder As MethodBuilder)

參數

mdBuilder
MethodBuilder

表示另一個方法的 MethodBuilder 物件。

例外狀況

mdBuildernull

CreateType() 已在封入型別上被呼叫。

適用於