EventBuilder.AddOtherMethod(MethodBuilder) 方法

定义

添加与此事件关联的“其他”方法之一。 “Other”方法是与事件关联的“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() 已在封闭类型上调用。

适用于