RuntimeReflectionExtensions.GetRuntimeField(Type, String) Metoda

Definicja

Pobiera obiekt reprezentujący określone pole.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::FieldInfo ^ GetRuntimeField(Type ^ type, System::String ^ name);
public static System.Reflection.FieldInfo GetRuntimeField(this Type type, string name);
static member GetRuntimeField : Type * string -> System.Reflection.FieldInfo
<Extension()>
Public Function GetRuntimeField (type As Type, name As String) As FieldInfo

Parametry

type
Type

Typ, który zawiera pole.

name
String

Nazwa pola.

Zwraca

Obiekt reprezentujący określone pole lub null jeśli pole nie zostanie znalezione.

Wyjątki

Parametr type ma wartość null.

— lub —

Parametr name ma wartość null.

Dotyczy

Zobacz też