Type.GetField Method (String, BindingFlags)
Searches for the specified data field, using the specified binding constraints (flags).
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual abstract FieldInfo GetField (
stringname,
BindingFlagsbindingAttr
)
Parameters
name
The String object containing the name of the field you want to get.bindingAttr
A bitmask containing one or more BindingFlags objects that specify how the search is conducted.-or-
0 (zero), to return a null reference.
Return Value
A FieldInfo object representing the field that matches the specified requirements, if such a match is found; otherwise, a null reference.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.