AccessibleObject.IReflect.GetProperty メソッド

定義

オーバーロード

IReflect.GetProperty(String, BindingFlags)

指定した検索制約の下で、指定したプロパティに対応する PropertyInfo オブジェクトを取得します。 このメンバーの詳細については、「GetProperty(String, BindingFlags)」をご覧ください。

IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

指定した検索制約で、指定したプロパティに対応する PropertyInfo オブジェクトを取得します。 このメンバーの詳細については、「GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])」をご覧ください。

IReflect.GetProperty(String, BindingFlags)

指定した検索制約の下で、指定したプロパティに対応する PropertyInfo オブジェクトを取得します。 このメンバーの詳細については、「GetProperty(String, BindingFlags)」をご覧ください。

C#
System.Reflection.PropertyInfo IReflect.GetProperty (string name, System.Reflection.BindingFlags bindingAttr);
C#
System.Reflection.PropertyInfo? IReflect.GetProperty (string name, System.Reflection.BindingFlags bindingAttr);

パラメーター

name
String

検索するプロパティの名前。

bindingAttr
BindingFlags

検索を制御するために使用されるバインディング属性。

戻り値

bindingAttr で指定された検索制約に一致する見つかったプロパティの PropertyInfo オブジェクト。プロパティが見つからなかった場合は null

実装

例外

オブジェクトに複数のメソッドが同じ名前で実装されています。

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、AccessibleObject のインスタンスが IReflect インターフェイスにキャストされる場合のみ、使用できます。

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

指定した検索制約で、指定したプロパティに対応する PropertyInfo オブジェクトを取得します。 このメンバーの詳細については、「GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])」をご覧ください。

C#
System.Reflection.PropertyInfo IReflect.GetProperty (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
C#
System.Reflection.PropertyInfo? IReflect.GetProperty (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, Type? returnType, Type[] types, System.Reflection.ParameterModifier[]? modifiers);

パラメーター

name
String

検索対象のメンバーの名前。

bindingAttr
BindingFlags

検索を制御するために使用されるバインディング属性。

binder
Binder

このメソッドに関連するプロパティが含まれ、バインダーを実装するオブジェクト。

returnType
Type

オーバーロードされたメソッドからの選択に使用する配列。

types
Type[]

型が変更されているパラメーター シグネチャでバインドを機能させるために使われるパラメーター修飾子の配列。

modifiers
ParameterModifier[]

パラメーター修飾子の選択に使用する配列。

戻り値

指定した名前のプロパティがこのリフレクション オブジェクトで見つかった場合は、見つかったプロパティの PropertyInfo オブジェクト。プロパティが見つからなかった場合は null

実装

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、AccessibleObject のインスタンスが IReflect インターフェイスにキャストされる場合のみ、使用できます。

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9