Retrieves an array of FieldInfo objects corresponding to all fields of the current class.
[Visual Basic] Function GetFields( _ ByVal bindingAttr As BindingFlags _ ) As FieldInfo () [C#] FieldInfo[] GetFields( BindingFlags bindingAttr ); [C++] FieldInfo* GetFields( BindingFlags bindingAttr ) [] = 0; [JScript] function GetFields( bindingAttr : BindingFlags ) : FieldInfo[];
Returns an array of FieldInfo objects containing all the field information for this reflection object.
The GetFields method retrieves an array of FieldInfo objects by using the binding attribute that correspond to all fields of the current class.
The match is based upon a name. Each field must have a unique name. The NonPublic flag indicates when non-public methods are considered; Public indicates when public methods are considered.
An example of a binding attribute value is IgnoreCase.
IReflect Interface | IReflect Members | System.Reflection Namespace | BindingFlags | BindingFlags