TypeInfo.DeclaredFields プロパティ

定義

現在の型によって定義されたフィールドのコレクションを取得します。

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

プロパティ値

IEnumerable<FieldInfo>

現在の型によって定義されたフィールドのコレクション。

注釈

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

適用対象