Aracılığıyla paylaş


TypeBuilder.DefineEventCore(String, EventAttributes, Type) Yöntem

Tanım

Türetilmiş bir sınıfta geçersiz kılındığında, türüne verilen ad, öznitelikler ve olay türüyle yeni bir olay ekler.

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

Parametreler

name
String

Olayın adı. name katıştırılmış null içeremez.

attributes
EventAttributes

Olayın özniteliklerini belirten numaralandırma değerlerinin bit düzeyinde birleşimi.

eventtype
Type

Olayın türü.

Döndürülenler

Tanımlanan olay.

Şunlara uygulanır