TypeInfo.GetDeclaredProperty(String) メソッド

定義

現在の型によって宣言された指定されたプロパティを表す オブジェクトを返します。

public:
 virtual System::Reflection::PropertyInfo ^ GetDeclaredProperty(System::String ^ name);
public virtual System.Reflection.PropertyInfo GetDeclaredProperty (string name);
public virtual System.Reflection.PropertyInfo? GetDeclaredProperty (string name);
abstract member GetDeclaredProperty : string -> System.Reflection.PropertyInfo
override this.GetDeclaredProperty : string -> System.Reflection.PropertyInfo
Public Overridable Function GetDeclaredProperty (name As String) As PropertyInfo

パラメーター

name
String

プロパティの名前。

戻り値

見つかった場合は指定されたプロパティを表すオブジェクト。それ以外の場合は null

例外

namenullです。

適用対象