TypeBuilder.DefineEventCore(String, EventAttributes, Type) Metoda

Definicja

Po zastąpieniu klasy pochodnej dodaje nowe zdarzenie do typu z daną nazwą, atrybutami i typem zdarzenia.

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

Nazwa zdarzenia. name nie może zawierać osadzonych wartości null.

attributes
EventAttributes

Bitowa kombinacja wartości wyliczenia, która określa atrybuty zdarzenia.

eventtype
Type

Typ zdarzenia.

Zwraca

Zdefiniowane zdarzenie.

Dotyczy