Module.GetFields メソッド

定義

モジュールで定義されているグローバル フィールドを返します。

オーバーロード

名前 説明
GetFields(BindingFlags)

指定したバインド フラグに一致するモジュールで定義されているグローバル フィールドを返します。

GetFields()

モジュールで定義されているグローバル フィールドを返します。

GetFields(BindingFlags)

ソース:
Module.cs
ソース:
Module.cs
ソース:
Module.cs
ソース:
Module.cs
ソース:
Module.cs

指定したバインド フラグに一致するモジュールで定義されているグローバル フィールドを返します。

public:
 virtual cli::array <System::Reflection::FieldInfo ^> ^ GetFields(System::Reflection::BindingFlags bindingFlags);
public:
 cli::array <System::Reflection::FieldInfo ^> ^ GetFields(System::Reflection::BindingFlags bindingFlags);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Fields might be removed")]
public virtual 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);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Fields might be removed")>]
abstract member GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]
override this.GetFields : System.Reflection.BindingFlags -> System.Reflection.FieldInfo[]
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()

パラメーター

bindingFlags
BindingFlags

検索を制限する BindingFlags 値のビットごとの組み合わせ。

返品

型の配列 FieldInfo 、指定したバインド フラグに一致するモジュールで定義されているグローバル フィールドを表します。バインド フラグに一致するグローバル フィールドがない場合は、空の配列が返されます。

属性

注釈

GetFields メソッドは、アルファベット順や宣言順序など、特定の順序でフィールドを返しません。 コードは、フィールドが返される順序に依存しないようにする必要があります。これは、その順序が異なる場合があるためです。

適用対象

GetFields()

ソース:
Module.cs
ソース:
Module.cs
ソース:
Module.cs
ソース:
Module.cs
ソース:
Module.cs

モジュールで定義されているグローバル フィールドを返します。

public:
 cli::array <System::Reflection::FieldInfo ^> ^ GetFields();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Fields might be removed")]
public System.Reflection.FieldInfo[] GetFields();
public System.Reflection.FieldInfo[] GetFields();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Fields might be removed")>]
member this.GetFields : unit -> System.Reflection.FieldInfo[]
member this.GetFields : unit -> System.Reflection.FieldInfo[]
Public Function GetFields () As FieldInfo()

返品

モジュールで定義されているグローバル フィールドを表す FieldInfo オブジェクトの配列。グローバル フィールドがない場合は、空の配列が返されます。

属性

注釈

GetFields メソッドは、アルファベット順や宣言順序など、特定の順序でフィールドを返しません。 コードは、フィールドが返される順序に依存しないようにする必要があります。これは、その順序が異なる場合があるためです。

適用対象