Udostępnij przez


EventBuilder.AddOtherMethod(MethodBuilder) Metoda

Definicja

Dodaje jedną z "innych" metod skojarzonych z tym zdarzeniem. Metody "Inne" to metody inne niż metody "włączone" i "raise" skojarzone ze zdarzeniem. Ta funkcja może być wywoływana wiele razy, aby dodać dowolną liczbę metod "innych".

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)

Parametry

mdBuilder
MethodBuilder

MethodBuilder Obiekt reprezentujący inną metodę.

Wyjątki

mdBuilder to null.

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

Dotyczy