Returns a System.Reflection.FieldInfo instance that reflects the global field that has the specified name and has the specified binding attributes, and is a member of the module reflected by the current instance.
- name
- A string that specifies the name of the field to be returned.
- bindingAttr
- A bitwise combination of System.Reflection.BindingFlags value that control the binding process.
Note: Specify BindingFlags.Public or BindingFlags.NonPublic, or BindingFlags.Static ; otherwise, this method will return null .
Returns a System.Reflection.FieldInfo instance that reflects the global field that has the name name and characteristics specified by bindingAttr, and is a member of the module reflected by the current instance, if found; otherwise, returns null .
Type Reason ArgumentNullException name is null.
Note: A global field is a field with a module-level scope.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0