TypeBuilder.DefineEventCore(String, EventAttributes, Type) Método

Definição

Quando substituído em uma classe derivada, adiciona um novo evento ao tipo, com o nome, os atributos e o tipo de evento fornecidos.

protected:
 abstract System::Reflection::Emit::EventBuilder ^ DefineEventCore(System::String ^ name, System::Reflection::EventAttributes attributes, Type ^ eventtype);
protected abstract System.Reflection.Emit.EventBuilder DefineEventCore (string name, System.Reflection.EventAttributes attributes, Type eventtype);
abstract member DefineEventCore : string * System.Reflection.EventAttributes * Type -> System.Reflection.Emit.EventBuilder
Protected MustOverride Function DefineEventCore (name As String, attributes As EventAttributes, eventtype As Type) As EventBuilder

Parâmetros

name
String

O nome do evento. name não pode conter nulos inseridos.

attributes
EventAttributes

Uma combinação bit a bit dos valores de enumeração que especifica os atributos do evento.

eventtype
Type

O tipo de evento.

Retornos

O evento definido.

Aplica-se a