GetField Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the FieldInfo object that corresponds to the specified field and binding flag.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

FieldInfo GetField(
	string name,
	BindingFlags bindingAttr


Type: System..::..String
The name of the field to find.
Type: System.Reflection..::..BindingFlags
The binding attributes used to control the search.

Return Value

Type: System.Reflection..::..FieldInfo
A FieldInfo object containing the field information for the named object that meets the search constraints specified in bindingAttr.