RuntimeReflectionExtensions.GetRuntimeEvents(Type) メソッド

定義

指定した型で定義されるすべてのイベントを表すコレクションを取得します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Reflection::EventInfo ^> ^ GetRuntimeEvents(Type ^ type);
public static System.Collections.Generic.IEnumerable<System.Reflection.EventInfo> GetRuntimeEvents (this Type type);
static member GetRuntimeEvents : Type -> seq<System.Reflection.EventInfo>
<Extension()>
Public Function GetRuntimeEvents (type As Type) As IEnumerable(Of EventInfo)

パラメーター

type
Type

イベントを含む型。

戻り値

IEnumerable<EventInfo>

指定した種類のイベントのコレクション。

例外

typenullです。

注釈

このメソッドは、継承、非パブリック、インスタンス、静的イベントなど、指定した型で定義されているすべてのイベントを返します。

適用対象

こちらもご覧ください