EventBuilder.SetAddOnMethod(MethodBuilder) 方法

定義

設定訂閱此事件的方法。

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

參數

mdBuilder
MethodBuilder

一個 MethodBuilder 代表訂閱此事件的方法的物件。

例外狀況

mdBuildernull

CreateType() 被稱為包圍型。

適用於