RuntimeReflectionExtensions.GetRuntimeFields(Type) RuntimeReflectionExtensions.GetRuntimeFields(Type) RuntimeReflectionExtensions.GetRuntimeFields(Type) Method

定義

擷取集合,表示指定的型別所定義的所有欄位。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 Type Type

包含欄位的型別。The type that contains the fields.

傳回

所指定型別的欄位集合。A collection of fields for the specified type.

例外狀況

備註

這個方法會傳回在指定的型別,包括繼承、 非公用執行個體和靜態欄位定義的所有欄位。This method returns all fields that are defined on the specified type, including inherited, non-public, instance, and static fields.

適用於

另請參閱