TypeBuilder.DefineEventCore(String, EventAttributes, Type) 方法

定義

在衍生類別中覆寫時,使用指定的名稱、屬性和事件種類,將新的事件新增至類型。

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

參數

name
String

事件的名稱。 name 不能包含內嵌的 null。

attributes
EventAttributes

列舉值的位元組合,指定事件的屬性。

eventtype
Type

事件的類型。

傳回

定義的事件。

適用於