Module.GetFields Module.GetFields Module.GetFields Module.GetFields Method

Definition

Returns the global fields defined on the module.

Overloads

GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags)

Returns the global fields defined on the module that match the specified binding flags.

GetFields() GetFields() GetFields() GetFields()

Returns the global fields defined on the module.

GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags)

Returns the global fields defined on the module that match the specified binding flags.

public:
 virtual cli::array <System::Reflection::FieldInfo ^> ^ GetFields(System::Reflection::BindingFlags bindingFlags);
public virtual System.Reflection.FieldInfo[] GetFields (System.Reflection.BindingFlags bindingFlags);
abstract member GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]
override this.GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]

Parameters

bindingFlags
BindingFlags BindingFlags BindingFlags BindingFlags

A bitwise combination of BindingFlags values that limit the search.

Returns

An array of type FieldInfo representing the global fields defined on the module that match the specified binding flags; if no global fields match the binding flags, an empty array is returned.

Remarks

The GetFields method does not return fields in a particular order, such as alphabetical or declaration order. Your code must not depend on the order in which fields are returned, because that order can vary.

GetFields() GetFields() GetFields() GetFields()

Returns the global fields defined on the module.

public:
 cli::array <System::Reflection::FieldInfo ^> ^ GetFields();
public System.Reflection.FieldInfo[] GetFields ();
member this.GetFields : unit -> System.Reflection.FieldInfo[]
Public Function GetFields () As FieldInfo()

Returns

An array of FieldInfo objects representing the global fields defined on the module; if there are no global fields, an empty array is returned.

Remarks

The GetFields method does not return fields in a particular order, such as alphabetical or declaration order. Your code must not depend on the order in which fields are returned, because that order can vary.

Applies to