System.Reflection.IReflect.GetField Method

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

Syntax

public FieldInfo GetField (string name, BindingFlags bindingAttr)

Parameters

name
The name of the field to find.
bindingAttr
The binding attributes used to control the search.

Returns

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0