System::Reflection::FieldInfo 类

FieldInfo class

发现字段的属性并提供对字段元数据的访问。

class FieldInfo : public System::Reflection::MemberInfo

方法

方法描述
get_FieldType()获取属性类型。
get_IsStatic()获取指示该字段是否为静态的值。
GetValue(const System::SharedPtr<System::Object>&)从特定对象获取属性值。
SetValue(const System::SharedPtr<System::Object>&, const System::SharedPtr<System::Object>&)将属性值设置到特定对象。

另见