RuntimeReflectionExtensions.GetRuntimeFields(Type) Metoda

Definice

Načte kolekci, která představuje všechna pole definovaná na zadaném typu.

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

Kolekce polí pro zadaný typ.

Výjimky

type je null.

Poznámky

Tato metoda vrátí všechna pole, která jsou definována pro zadaný typ, včetně zděděných, neveřejných, instancí a statických polí.

Platí pro

Viz také