IReflect.GetField Method
Retrieves the FieldInfo object that corresponds to a specified field and BindingFlags member (binding attributes).
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
public FieldInfo GetField (
stringname,
BindingFlagsbindingAttr
)
Parameters
- name
The name of the field you want to find. - bindingAttr
The binding attributes you want to use to control the search.
Return Value
A FieldInfo object that contains the field information for the named object that meets the search constraints specified in the bindingAttr parameter.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.
See Also
Reference
IReflect Interface
IReflect Members
System.Reflection Namespace