TypeInfo.GetDeclaredField(String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在の型で宣言された指定したフィールドを表すオブジェクトを返します。
public:
virtual System::Reflection::FieldInfo ^ GetDeclaredField(System::String ^ name);
public virtual System.Reflection.FieldInfo GetDeclaredField(string name);
abstract member GetDeclaredField : string -> System.Reflection.FieldInfo
override this.GetDeclaredField : string -> System.Reflection.FieldInfo
Public Overridable Function GetDeclaredField (name As String) As FieldInfo
パラメーター
- name
- String
フィールドの名前。
返品
指定したフィールドを表すオブジェクト (見つかった場合)。それ以外の場合は null。
例外
name は nullです。