RuntimeReflectionExtensions.GetRuntimeFields(Type) Metoda

Definice

Načte kolekci, která představuje všechna pole definovaná pro zadaný typ.

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>
<Extension()>
Public Function GetRuntimeFields (type As Type) As IEnumerable(Of FieldInfo)

Parametry

type
Type

Typ, který obsahuje pole.

Návraty

IEnumerable<FieldInfo>

Kolekce polí pro zadaný typ.

Výjimky

type je null.

Poznámky

Tato metoda vrátí všechna pole definovaná v zadaném typu, včetně zděděných, neveřejných, instancí a statických polí.

Platí pro

Viz také