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

定義

指定したプロパティを表すオブジェクトを取得します。

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

パラメーター

type
Type

プロパティを含む型。

name
String

プロパティの名前。

戻り値

指定したプロパティを表すオブジェクト。プロパティが見つからない場合は null

例外

typenullです。

または

namenullです。

typeRuntimeType ではありません。

要求された名前を持つプロパティが複数見つかりました。

適用対象

こちらもご覧ください