TypeBuilder.DefineEventCore(String, EventAttributes, Type) Metode

Definisi

Saat ditimpa di kelas turunan, menambahkan peristiwa baru ke jenis , dengan nama, atribut, dan jenis peristiwa yang diberikan.

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

Parameter

name
String

Nama peristiwa. name tidak boleh berisi null yang disematkan.

attributes
EventAttributes

Kombinasi bitwise dari nilai enumerasi yang menentukan atribut peristiwa.

eventtype
Type

Jenis peristiwa.

Mengembalikan

Peristiwa yang ditentukan.

Berlaku untuk