EventBuilder.SetAddOnMethod(MethodBuilder) Método

Definição

Define o método utilizado para subscrever este evento.

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)

Parâmetros

mdBuilder
MethodBuilder

Um MethodBuilder objeto que representa o método usado para subscrever este evento.

Exceções

mdBuilder é null.

CreateType() foi chamado no tipo de anexo.

Aplica-se a