TypeBuilder.DefineEventCore(String, EventAttributes, Type) Metoda

Definice

Při přepsání v odvozené třídě přidá do typu novou událost s daným názvem, atributy a typem události.

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

Parametry

name
String

Název události. name nemůže obsahovat vložené hodnoty null.

attributes
EventAttributes

Bitové kombinace hodnot výčtu, která určuje atributy události.

eventtype
Type

Typ události.

Návraty

Definovaná událost.

Platí pro