RuntimeReflectionExtensions.GetRuntimeField(Type, String) メソッド

定義

指定したフィールドを表すオブジェクトを取得します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::FieldInfo ^ GetRuntimeField(Type ^ type, System::String ^ name);
public static System.Reflection.FieldInfo GetRuntimeField (this Type type, string name);
public static System.Reflection.FieldInfo? GetRuntimeField (this Type type, string name);
static member GetRuntimeField : Type * string -> System.Reflection.FieldInfo
<Extension()>
Public Function GetRuntimeField (type As Type, name As String) As FieldInfo

パラメーター

type
Type

フィールドを含む型。

name
String

フィールドの名前。

戻り値

FieldInfo

指定したフィールドを表すオブジェクト。フィールドが見つからない場合は null

例外

typenullです。

または

namenullです。

適用対象

こちらもご覧ください