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

イベントの種類。

戻り値

定義済みのイベント。

適用対象