RuntimeReflectionExtensions.GetRuntimeFields(Type) メソッド
定義
指定した型で定義されるすべてのフィールドを表すコレクションを取得します。Retrieves a collection that represents all the fields defined on a specified type.
public:
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IEnumerable<System::Reflection::FieldInfo ^> ^ GetRuntimeFields(Type ^ type);
public static System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo> GetRuntimeFields (this Type type);
static member GetRuntimeFields : Type -> seq<System.Reflection.FieldInfo>
パラメーター
- type
- Type
フィールドを含む型。The type that contains the fields.
戻り値
指定した種類のフィールドのコレクション。A collection of fields for the specified type.
例外
type
は null
です。type
is null
.
注釈
このメソッドは、指定した型で定義されているすべてのフィールド (継承、非パブリック、インスタンス、および静的フィールドを含む) を返します。This method returns all fields that are defined on the specified type, including inherited, non-public, instance, and static fields.