TypeBuilder.DefineEventCore(String, EventAttributes, Type) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.