RuntimeReflectionExtensions.GetRuntimeField(Type, String) Метод
Определение
Извлекает объект , который представляет указанное поле.Retrieves an object that represents a specified field.
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
Параметры
- type
- Type
Тип, содержащий поле.The type that contains the field.
- name
- String
Имя поля.The name of the field.
Возвраты
Объект, представляющий указанное поле, или значение null
, если поле не найдено.An object that represents the specified field, or null
if the field is not found.
Исключения
type
— null
.type
is null
.
- или --or-
Свойство name
имеет значение null
.name
is null
.