EventBuilder.AddOtherMethod(MethodBuilder) Metoda

Definice

Přidá jednu z "ostatních" metod přidružených k této události. "Jiné" metody jsou jiné než metody on a "raise" přidružené k události. Tuto funkci lze volat mnohokrát, aby se přidalo tolik "jiných" metod.

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

Objekt MethodBuilder , který představuje druhou metodu.

Výjimky

mdBuilder je null.

CreateType() byl volána na uzavřený typ.

Platí pro