Επεξεργασία

Κοινή χρήση μέσω


Module.GetFields Method

Definition

Returns the global fields defined on the module.

Overloads

GetFields(BindingFlags)

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

GetFields()

Returns the global fields defined on the module.

GetFields(BindingFlags)

Source:
Module.cs
Source:
Module.cs
Source:
Module.cs

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:
 cli::array <System::Reflection::FieldInfo ^> ^ GetFields(System::Reflection::BindingFlags bindingFlags);
public virtual System.Reflection.FieldInfo[] GetFields (System.Reflection.BindingFlags bindingFlags);
public 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[]
member this.GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]
Public Overridable Function GetFields (bindingFlags As BindingFlags) As FieldInfo()
Public Function GetFields (bindingFlags As BindingFlags) As FieldInfo()

Parameters

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.

Applies to

GetFields()

Source:
Module.cs
Source:
Module.cs
Source:
Module.cs

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