EventBuilder.SetAddOnMethod(MethodBuilder) Metoda

Definicja

Ustawia metodę używaną do subskrybowania tego zdarzenia.

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)

Parametry

mdBuilder
MethodBuilder

MethodBuilder Obiekt reprezentujący metodę używaną do subskrybowania tego zdarzenia.

Wyjątki

mdBuilder to null.

CreateType() został wywołany dla otaczającego typu.

Dotyczy