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

定义

返回在模块上定义的全局字段。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.

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

参数

bindingFlags
BindingFlags BindingFlags BindingFlags BindingFlags

用于限制搜索的 BindingFlags 值的按位组合。A bitwise combination of BindingFlags values that limit the search.

返回

类型 FieldInfo 的数组,表示在与指定的绑定标志匹配的模块上定义的全局字段;如果没有全局字段匹配绑定标志,则返回空数组。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.

注解

@No__t-0 方法不按特定顺序(如字母顺序或声明顺序)返回字段。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()

返回

表示在模块上定义的全局字段的 FieldInfo 对象数组;如果没有全局字段,则返回空数组。An array of FieldInfo objects representing the global fields defined on the module; if there are no global fields, an empty array is returned.

注解

@No__t-0 方法不按特定顺序(如字母顺序或声明顺序)返回字段。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.

适用于