TypeInfo.DeclaredEvents プロパティ

定義

現在の型によって定義されたイベントのコレクションを取得します。

public:
 virtual property System::Collections::Generic::IEnumerable<System::Reflection::EventInfo ^> ^ DeclaredEvents { System::Collections::Generic::IEnumerable<System::Reflection::EventInfo ^> ^ get(); };
public virtual System.Collections.Generic.IEnumerable<System.Reflection.EventInfo> DeclaredEvents { get; }
member this.DeclaredEvents : seq<System.Reflection.EventInfo>
Public Overridable ReadOnly Property DeclaredEvents As IEnumerable(Of EventInfo)

プロパティ値

現在の型によって定義されたイベントのコレクション。

注釈

プロパティの DeclaredEvents 結果をフィルター処理するには、LINQ クエリを使用します。 ランタイムで生成されたリフレクション オブジェクトの場合 (たとえば、 の結果として)、 クラスの typeof(Object)メソッドを使用して継承ツリーを RuntimeReflectionExtensions 走査できます。 カスタマイズされたリフレクション コンテキストのオブジェクトのコンシューマーは、これらのメソッドを使用できず、継承ツリー自体を走査する必要があります。

適用対象