TypedArray.GetField(String, BindingFlags) 方法
定义
public:
virtual System::Reflection::FieldInfo ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.FieldInfo GetField (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
override this.GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
Public Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo
参数
- name
- String
要获取的字段的名称。The name of the field to get.
- bindingAttr
- BindingFlags
枚举值的按位组合,用于指定反射如何执行成员搜索。A bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.
返回
一个具有指定名称的字段(如果找到一个这样的字段);否则为 null。A field that has the specified name, if one is found; otherwise, null.