NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IReflect.GetFields

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[];

Parameters

bindingAttr
The binding attributes used to control the search.

Return Value

Returns an array of FieldInfo objects containing all the field information for this reflection object.

Remarks

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.

See Also

IReflect Interface | IReflect Members | System.Reflection Namespace | BindingFlags | BindingFlags