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);
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

FieldInfo

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

Wyjątki

type to null.

-lub-

name to null.

Dotyczy

Zobacz też