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() 已在封闭类型上调用。

适用于